From: Guillaume Gautreau Date: Sat, 26 Jan 2013 13:31:33 +0000 (+0100) Subject: lint + wrong comparison X-Git-Tag: v2.3.0^2~7^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5be883bb9a5a9e4eb90df7f3d2e24237a3e010a;p=thirdparty%2Fbootstrap.git lint + wrong comparison --- diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index 49c3c6be42..8b03577442 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -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;