this.el.hide();
Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', '0px');
+
+ var navbar_fixed_top = Roo.select('.navbar-fixed-top', true).first();
+
+ if(navbar_fixed_top != null){
+ navbar_fixed_top.setStyle('margin-top', '0px');
+ }
}
});
this.render();
}
-// Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', this.el.getHeight() + 'px');
+ Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', this.el.getHeight() + 'px');
var navbar_fixed_top = Roo.select('.navbar-fixed-top', true).first();
this.el.hide();
Roo.select('.bootstrap-sticky-wrap', true).first().setStyle('margin-top', '0px');
+
+ var navbar_fixed_top = Roo.select('.navbar-fixed-top', true).first();
+
+ if(navbar_fixed_top != null){
+ navbar_fixed_top.setStyle('margin-top', '0px');
+ }
}
});
//Roo/bootstrap/MessageBar.js
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();}var A=Roo.select('.navbar-fixed-top',true).first();if(A!=null){A.setStyle('margin-top',this.el.getHeight()+'px');}},hide:function(){this.el.hide();Roo.select('.bootstrap-sticky-wrap',true).first().setStyle('margin-top','0px');}});
+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',this.el.getHeight()+'px');var A=Roo.select('.navbar-fixed-top',true).first();if(A!=null){A.setStyle('margin-top',this.el.getHeight()+'px');}},hide:function(){this.el.hide();Roo.select('.bootstrap-sticky-wrap',true).first().setStyle('margin-top','0px');var A=Roo.select('.navbar-fixed-top',true).first();if(A!=null){A.setStyle('margin-top','0px');}}});