PDA

View Full Version : [DEPRECATE] warning for LoadMask, Msg, etc. show() method



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();

mitchellsimoens
5 Jan 2012, 8:43 AM
Any floating component will throw this warning and I don't think it's valid. Floating components shouldn't be apart of a layout.

estesbubba
5 Jan 2012, 8:47 AM
Any floating component will throw this warning and I don't think it's valid. Floating components shouldn't be apart of a layout.

I agree. Think this should be moved to the bugs forum for investigation?

mitchellsimoens
5 Jan 2012, 8:50 AM
It's known.