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

index 173a898..a0c1e49 100644 (file)
@@ -131,7 +131,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         this.el = ct.createChild(cfg, position);
         
         if (this.tooltip) {
-            this.tooltipEl().dom.setAttribute('tooltip', this.tooltip);
+            this.tooltipEl().attr('tooltip', this.tooltip);
+            this.tooltipEl().attr("data-placement='top'", this.tooltip);
         }
         
         if(this.tabIndex !== undefined){