html: this.html || ''
}
]
- }
+ };
if(this.fixed){
cfg.cls += ' alert-messages-fixed';
cfg.style = this.style;
}
this.el = Roo.get(document.body).createChild(cfg, Roo.select('.'+this.beforeClass, true).first());
+
+ this.el.setVisibilityMode(Roo.Element.DISPLAY);
}
this.el.select('>button.close').on('click', this.hide, this);
hide : function()
{
+ if (!this.rendered) {
+ this.render();
+ }
+
this.el.hide();
this.fireEvent('hide', this);