Re: Resize SimpleLayoutPanel issues.
Thank you very much Jens. I appreciate a response here. To answer your question:
1) The activity's view does use DockLayoutPanel. This example was very simplified. The footer panel does have a coarse layout. The activity's view has a Vertical Panel. In that the top portion i.e header is basically view using vertical/horizontal panels. The bottom portion i.e footer basically has DockLayout panel and it carries tabs and each tab in itself have a different view. So basically header 1 and footer 1 is one MVP view with its own activity. Hence I am creating new instance of SimpleLayoutPanel and shoving the View (header 1 and footer 1) into it.
2) I can change the Vertical Panel to FlowPanel. Thanks for the suggestion!
Any other way you can think of to solve this issue?
On Tuesday, August 6, 2013 12:09:06 PM UTC-5, Jens wrote:
1.) Is your activity's view a LayoutPanel? If not there is no need to use SimpleLayoutPanel. Just use SimplePanel instead and don't give it a height. Because its not a LayoutPanel it will adjust its height based on its content. If it is a LayoutPanel then maybe rethink if its really needed. Normally you use LayoutPanels for coarse layouts and not for such tiny widgets.2.) Any specific reason you have chosen VerticalPanel? VerticalPanel distributes all its cells evenly (2 cells => each cell has 50% height) if you don't change that programatically. Maybe you better use FlowPanel.-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home