Roo/bootstrap/MessageBar.js
authorEdward <edward@roojs.com>
Wed, 4 Jun 2014 08:09:33 +0000 (16:09 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Jun 2014 08:09:33 +0000 (16:09 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/MessageBar.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 0dac472..db695a8 100644 (file)
@@ -78,7 +78,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             this.render();
         }
         
-        Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', '55px');
+        Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', this.el.getHeight() + 'px');
         
     },
     
index 9bc056e..e37e4aa 100644 (file)
@@ -15621,7 +15621,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             this.render();
         }
         
-        Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', '55px');
+        Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', this.el.getHeight() + 'px');
         
     },
     
index 91c4c8c..cb57578 100644 (file)
@@ -337,4 +337,4 @@ this.fireEvent("rowdeselect",this,A);this.fireEvent("selectionchange",this);},re
 Roo.bootstrap.MessageBar=function(A){Roo.bootstrap.MessageBar.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.MessageBar,Roo.bootstrap.Component,{html:'',weight:'info',closable:true,getAutoCreate:function(){var A={tag:'div',cls:'alert alert-dismissable alert-messages alert-'+this.weight,html:this.html||''};if(this.closable){A.cn={tag:'button',cls:'close',html:'x'}}return A;},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A);if(!this.el){var B=Roo.apply({},this.getAutoCreate());B.id=Roo.id();if(this.cls){B.cls+=' '+this.cls;}if(this.style){B.style=this.style;}
 this.el=Roo.get(document.body).createChild(B,A);}
 this.el.select('>button.close').on('click',this.hide,this);},show:function(){if(!this.rendered){this.render();}
-Roo.select('.bootstrap-sticky-wrap',true).first().setStyle('margin-top','55px');},hide:function(){this.el.hide();Roo.select('.bootstrap-sticky-wrap',true).first().setStyle('margin-top','0px');}});
+Roo.select('.bootstrap-sticky-wrap',true).first().setStyle('margin-top',this.el.getHeight()+'px');},hide:function(){this.el.hide();Roo.select('.bootstrap-sticky-wrap',true).first().setStyle('margin-top','0px');}});