estesbubba
5 Jan 2012, 8:29 AM
So I am using the default Ext.Viewport to add my cards. Whenever I show any floating components I get this warning:
[DEPRECATE][Ext.MessageBox#show] Showing a component that currently doesn't have any container, please use Ext.Viewport.add() to add this component to the viewport
Now if I do the Ext.Viewport.add() the warning goes away but doing this for every MessageBox, LoadMask, etc. is a pain. Do I really need to add() each one before showing or am I missing something here?
this.mask = new Ext.LoadMask({
message: 'Processing...'
});
Ext.Viewport.add(this.mask);
this.mask.show();
[DEPRECATE][Ext.MessageBox#show] Showing a component that currently doesn't have any container, please use Ext.Viewport.add() to add this component to the viewport
Now if I do the Ext.Viewport.add() the warning goes away but doing this for every MessageBox, LoadMask, etc. is a pain. Do I really need to add() each one before showing or am I missing something here?
this.mask = new Ext.LoadMask({
message: 'Processing...'
});
Ext.Viewport.add(this.mask);
this.mask.show();