aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-09-24 21:27:56 -0700
committerChris Rebert <[email protected]>2014-09-24 21:27:56 -0700
commit443a1b11ee4f057d93bad6351b4ea606d8787b4d (patch)
treea6f0039e060905fdccac34368c4ce4b604e68a16
parentc15fffc73b990aeb65f91c9ac2ac50fd4b69bb65 (diff)
downloadbootstrap-443a1b11ee4f057d93bad6351b4ea606d8787b4d.tar.xz
bootstrap-443a1b11ee4f057d93bad6351b4ea606d8787b4d.zip
tooltip.js: fix alignment
-rw-r--r--js/tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index 55dedcef4..ff33a4f10 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -192,7 +192,7 @@
var containerDim = this.getPosition($container)
placement = placement == 'bottom' && pos.top + pos.height + actualHeight - containerDim.scroll > containerDim.height ? 'top' :
- placement == 'top' && pos.top - containerDim.scroll - actualHeight < containerDim.top ? 'bottom' :
+ placement == 'top' && pos.top - containerDim.scroll - actualHeight < containerDim.top ? 'bottom' :
placement == 'right' && pos.right + actualWidth > containerDim.width ? 'left' :
placement == 'left' && pos.left - actualWidth < containerDim.left ? 'right' :
placement