aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-10-22 21:38:34 +0200
committerHeinrich Fenkart <[email protected]>2014-10-22 21:38:34 +0200
commit95e0f48e3a2b2f002ef50f34bb1559f8765fe262 (patch)
treec8a9002b93d4f7313c69a64a70469e1d4f757566
parente2cfbd5f2df12cb207a66663925f5ee7e5cb2320 (diff)
downloadbootstrap-95e0f48e3a2b2f002ef50f34bb1559f8765fe262.tar.xz
bootstrap-95e0f48e3a2b2f002ef50f34bb1559f8765fe262.zip
Follow-up to e2cfbd5: Fix spaces in placement calculation
-rw-r--r--js/tooltip.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index 6dc6cf2e1..944586a2d 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -191,10 +191,10 @@
var $container = this.options.container ? $(this.options.container) : this.$element.parent()
var containerDim = this.getPosition($container)
- placement = placement == 'bottom' && pos.bottom + actualHeight > containerDim.bottom ? 'top' :
- placement == 'top' && pos.top - actualHeight < containerDim.top ? 'bottom' :
- placement == 'right' && pos.right + actualWidth > containerDim.width ? 'left' :
- placement == 'left' && pos.left - actualWidth < containerDim.left ? 'right' :
+ placement = placement == 'bottom' && pos.bottom + actualHeight > containerDim.bottom ? 'top' :
+ placement == 'top' && pos.top - actualHeight < containerDim.top ? 'bottom' :
+ placement == 'right' && pos.right + actualWidth > containerDim.width ? 'left' :
+ placement == 'left' && pos.left - actualWidth < containerDim.left ? 'right' :
placement
$tip