aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-tooltip.js
diff options
context:
space:
mode:
authorGuillaume Gautreau <[email protected]>2013-01-26 14:31:33 +0100
committerGuillaume Gautreau <[email protected]>2013-01-26 14:31:33 +0100
commite5be883bb9a5a9e4eb90df7f3d2e24237a3e010a (patch)
treee08052b46556b2e15a2bde5532e1fa3f389a6cc1 /js/bootstrap-tooltip.js
parent929598784f3a2e4f706d5dcd5a41cea207dfd65e (diff)
downloadbootstrap-e5be883bb9a5a9e4eb90df7f3d2e24237a3e010a.tar.xz
bootstrap-e5be883bb9a5a9e4eb90df7f3d2e24237a3e010a.zip
lint + wrong comparison
Diffstat (limited to 'js/bootstrap-tooltip.js')
-rw-r--r--js/bootstrap-tooltip.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js
index 49c3c6be4..8b0357744 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;