Roo/bootstrap/Tooltip.js
authorjohn <john@roojs.com>
Fri, 21 Sep 2018 10:35:48 +0000 (18:35 +0800)
committerjohn <john@roojs.com>
Fri, 21 Sep 2018 10:35:48 +0000 (18:35 +0800)
Roo/bootstrap/Tooltip.js

index 7856f61..8645ebd 100644 (file)
@@ -270,11 +270,7 @@ Roo.extend(Roo.bootstrap.Tooltip, Roo.bootstrap.Component,  {
             
             var scroll = Roo.select('body', true).first().getScroll();
             
-            Roo.log(xy[1]);
-            Roo.log(this.el.getHeight());
-            Roo.log(Roo.lib.Dom.getViewHeight());
-            
-            if(xy[1] + this.el.getHeight() >= Roo.lib.Dom.getViewHeight() + scroll.top){
+            if(xy[1] > Roo.lib.Dom.getViewHeight() + scroll.top - this.el.getHeight()){
                 placement = 'top';
             }