]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
tooltip.js: fix alignment
authorChris Rebert <github@rebertia.com>
Thu, 25 Sep 2014 04:27:56 +0000 (21:27 -0700)
committerChris Rebert <github@rebertia.com>
Thu, 25 Sep 2014 04:27:56 +0000 (21:27 -0700)
js/tooltip.js

index 55dedcef41f61c3029f1b2d8e3abc11759fea9df..ff33a4f10d7b09526ea3050cec36de70e01139b7 100644 (file)
         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