Thursday, June 28, 2012

Re: GWT Widgets Do Not Resize In Relation To Browser

Working through the RequiresResize and ProvidesResize interfaces

On Thursday, June 28, 2012 8:30:34 PM UTC-4, KGD wrote:
Thank you for the response.  When you reference "resizeLayoutPanel" are you using that as a generic for the specific items such as DockLayoutPanel, SplitLayoutPanel, TabLayoutPanel, etc.?  Sorry if the question seems stupid, I'm used to Swing and AWT but I'm just working through GWT.  I'm expecting a child component to attach to its parent container.  Do you have an example of how you are suggesting to resize the component?

Thanks,
KGD


On Wednesday, June 27, 2012 9:24:16 PM UTC-4, Steve wrote:
Wrap it in a resizeLayoutPanel. Then you can set set a resizeHandler. When that triggers, get the new height and width of the resizePanel and resize the widgets inside it proportionately. You may need to play around with the width to subtract the width of the scroll bars.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0CZAyNDJHeoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment