-
15 Feb 2012 1:35 PM #1
Unanswered: Console.js:35[DEPRECATE][view.Layout#show] Call show() on a component that doesn't ..
Unanswered: Console.js:35[DEPRECATE][view.Layout#show] Call show() on a component that doesn't ..
I have tried Ext.Viewport.add('mainLayout'); before the line above but I get an error so I am after the correct usage please anyone...Code:launch: function() { Ext.widget('mainLayout').show();
Console.js:35[DEPRECATE][view.Layout#show] Call show() on a component that doesn't currently belong to any container. Please add it to the the Viewport first, i.e: Ext.Viewport.add(component);
-
15 Feb 2012 1:49 PM #2
Try
PHP Code:var mainView = Ext.widget('mainLayout');
Ext.Viewport.add(mainView);
-
16 Feb 2012 7:57 AM #3
If I create using items {} fashion will I still need to add and show() the view in the actual class ?
Thanks - at least my main view is showing.
-
8 Oct 2012 11:01 PM #4
Gotcha
Gotcha
Aaah, Ext.Viewport.add expects an array of components. The following doesn't generate the warning:
var mainView = Ext.widget('mainLayout');
Ext.Viewport.add([mainView]);


Reply With Quote