Roo/bootstrap/Tooltip.js
authoredward <edward@roojs.com>
Tue, 21 Nov 2017 03:50:33 +0000 (11:50 +0800)
committeredward <edward@roojs.com>
Tue, 21 Nov 2017 03:50:33 +0000 (11:50 +0800)
Roo/bootstrap/Form.js

Roo/bootstrap/Form.js
Roo/bootstrap/Tooltip.js

index f7dfd67..530268f 100644 (file)
@@ -197,6 +197,7 @@ Roo.extend(Roo.bootstrap.Form, Roo.bootstrap.Component,  {
         
         var tooltip = new Roo.bootstrap.Tooltip();
         tooltip.bindEl = target.el;
+        tooltip.show();
         
         var fadeout = function(){
             
index a7d48e1..18fe186 100644 (file)
@@ -247,10 +247,9 @@ Roo.extend(Roo.bootstrap.Tooltip, Roo.bootstrap.Component,  {
         }
         
         var align = Roo.bootstrap.Tooltip.alignment[placement];
-        Roo.log(align);
-        align[0] = 'tl-bl?';
+        
         var xy = this.el.getAlignToXY(this.bindEl, align[0], align[1]);
-        Roo.log(xy);
+        
         if(placement == 'top' || placement == 'bottom'){
             if(xy[0] < 0){
                 placement = 'right';
@@ -271,7 +270,6 @@ Roo.extend(Roo.bootstrap.Tooltip, Roo.bootstrap.Component,  {
         align = Roo.bootstrap.Tooltip.alignment[placement];
         
         this.el.alignTo(this.bindEl, align[0],align[1]);
-        
         //var arrow = this.el.select('.arrow',true).first();
         //arrow.set(align[2],