-
5 Jan 2012 8:29 AM #1
[DEPRECATE] warning for LoadMask, Msg, etc. show() method
[DEPRECATE] warning for LoadMask, Msg, etc. show() method
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?
Code:this.mask = new Ext.LoadMask({ message: 'Processing...' }); Ext.Viewport.add(this.mask); this.mask.show();
-
5 Jan 2012 8:43 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
Any floating component will throw this warning and I don't think it's valid. Floating components shouldn't be apart of a layout.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Jan 2012 8:47 AM #3
-
5 Jan 2012 8:50 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
It's known.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote