From: Chris Rebert Date: Thu, 25 Sep 2014 04:27:56 +0000 (-0700) Subject: tooltip.js: fix alignment X-Git-Tag: v3.3.0~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=443a1b11ee4f057d93bad6351b4ea606d8787b4d;p=thirdparty%2Fbootstrap.git tooltip.js: fix alignment --- diff --git a/js/tooltip.js b/js/tooltip.js index 55dedcef41..ff33a4f10d 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