1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 11:42:23 +01:00

lint + wrong comparison

This commit is contained in:
Guillaume Gautreau 2013-01-26 14:31:33 +01:00
parent 929598784f
commit e5be883bb9

View File

@ -180,7 +180,7 @@
actualWidth = $tip[0].offsetWidth;
actualHeight = $tip[0].offsetHeight;
if (placement == "top" && actualHeight != actualWidth){
if (placement == "top" && actualHeight != height){
offset.top = offset.top + height - actualHeight;
replace = true;
}
@ -190,7 +190,7 @@
if (offset.left < 0){
delta = -offset.left * 2;
offset.left = .1;
offset.left = 0.1;
$tip.offset(offset);
actualWidth = $tip[0].offsetWidth;
actualHeight = $tip[0].offsetHeight;