Hello!
I have strange problem: In my application i create login window prior to creating the viewport which contains the border-layout for the application.
The Window itself contains an Ext.FormPanel which contains the fields required to log in. When creating the ViewPort after this FormPanel has been created, the ViewPort sets the body of the page with relative position and top and left offsets.
This means the whole layout contained in the viewports starts somewhere in the middle of the page and the rest of it is not visible.
Has anyone experienced similar behaviours with the ViewPort? Does it have to be created before any other containers/components?
If so, i have another problem, because the Viewport does not let you add components after creation: I tried to work around this problem by creating the viewport first, but failed to add the viewport components dynamically after the login succeded. See this thread (http://extjs.com/forum/showthread.php?t=20771) on a report of this particular problem. Ext: Help - Page 1083 - Ext JS Forums:: Viewport behaves strange when created after FormPanel? Shyru · 12-13-2007 12:33 PM. 12-18-2007 08:33 AM by Shyru · Go to last post http://extjs.net/forum/forumdisplay.php?f=9&order=desc&page=1083HOME | /srv/irclogs.ubuntu.com/2008/01/09/#ubuntu.txt:: 15:23, Robin, ok thanks, cus it is wery strange for me, and i have created a partitionon my windows xp with partition magic but i dont now wich button to http://irclogs.ubuntu.com/2008/01/09/#ubuntu.htmlHOME |
After lots of troublesome debugging, i finally found the problem. - Its all in the state! /:)
Since i initally just had the viewport, then added a window before creating the viewport, component-id's changed and so the viewport was loading the state from an old component... :((
So just a heads-up for all reading this: The best is to always set a stateId on components, to avoid trouble when creation-order of components change.
I think the viewport does need to be created first.
you cannot add to the viewport after it is created, but you can do the basic layout with the correct empty regions and render into those regions later.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks |