-
15 Dec 2012 10:50 AM #1
I cant do it .Ext.panel.Panel is hidden
I cant do it .Ext.panel.Panel is hidden
Hi All!
!
First I would to beg your pardon for my English. If you will not understand something, you may write to me. Here my e-mail kramal888@gmail.com. .Thanks for the future!
And after all here below my question. I am developing one application. Now I have not finished it.
When i change renderTo:Ext.getBody() it is OK! But if i change renderTo:'panel' about 20% of the application is hidden! What is problem i dont know.
I give you screenshots to understand it best and files in zip
I will grateful for any suggestion because I am new in ExtJS
!
Screenshot.jpg
and its cause code
Screenshot-2.png
-
17 Dec 2012 5:16 AM #2
Hi,
Do you have something in your html with the id of 'panel'?
RenderTo is normally used to target Ext.getBody() as you have done, it's use is less common now days. Components are generally added to a container, and Ext sorts it all out.
What I'd expect to see is your created panel added to a viewport.
So something like:
Hope this helps!Code:var myPanel = Ext.create('Ext.panel.Panel', { //... }); Ext.create('Ext.container.Viewport', { items: [myPanel] });
WestyProduct Architect
Altus Ltd.
-
17 Dec 2012 6:14 AM #3


Reply With Quote