]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
lint + wrong comparison
authorGuillaume Gautreau <guillaume+github@ghusse.com>
Sat, 26 Jan 2013 13:31:33 +0000 (14:31 +0100)
committerGuillaume Gautreau <guillaume+github@ghusse.com>
Sat, 26 Jan 2013 13:31:33 +0000 (14:31 +0100)
js/bootstrap-tooltip.js

index 49c3c6be4294730f47dfce6e63a7d445f029190b..8b0357744247ca096ccb075de45ac3b0af018ce5 100644 (file)
     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;
     }
 
       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;