Hi - thanks for the reply. I already was using FitLayout. Another thing, it would be nice to be able to create and destroy a Viewport so that I could dynamically swap my view (Panel).
If I do away with using Viewport, what do I need to handle/implement in order to have my parent Panel resize to the browser? just using FitLayout I assume won't be enough? On Oct 22, 2:40 pm, Stefano Gargiulo <[email protected]> wrote: > try this: > > Panel childPanel = new Panel(); > childpanel.setLayout(new FitLayout()); > > On 10/23/2009 09:06 PM, prairie_kids wrote: > > > I have been trying to use GWT-EXT within an application based on the > > gwt-presenter framework. I'd like to be able to hide/show Panels based > > on events. The trouble is with Viewport. > > > I have a parent Panel that I add to my Viewport and then add child > > Panels to this root Panel. The child Panels however do not get sized > > properly. Is there a way that I can configure my child Panels to be > > sized to the same size as their parent? > > > Here's sort of the idea: > > > { > > > Panel rootPanel = new Panel(); > > Panel childPanel = new Panel(); > > > // child panel gets setup with BorderLayour stuff > > > rootPanel.add(childPanel); > > Viewport = new Viewport(rootPanel); > > > // result is that the childPanel is displayed but it doesnt resize to > > the size of the browser. > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
