Roo/bootstrap/Tooltip.js
authoredward <edward@roojs.com>
Thu, 25 Feb 2016 06:51:41 +0000 (14:51 +0800)
committeredward <edward@roojs.com>
Thu, 25 Feb 2016 06:51:41 +0000 (14:51 +0800)
Roo/bootstrap/Tooltip.js

index c01b0dc..6db1b1f 100644 (file)
@@ -254,9 +254,9 @@ Roo.extend(Roo.bootstrap.Tooltip, Roo.bootstrap.Component,  {
                 placement = 'right';
             }
             
-//            if(xy[1] < 0){
-//                placement = 'right';
-//            }
+            if(xy[0] < 0){
+                placement = 'right';
+            }
         }
         
         align = Roo.bootstrap.Tooltip.alignment[placement];