Tuesday, September 24, 2013

Re: Style problems with Firefox+LayoutPanel



On Tuesday, September 24, 2013 12:08:20 AM UTC+2, Steve C wrote:
Actually, I saw essentially the same view in Chrome, at least regarding the height of the select. The width is a different story.

In general, I wouldn't add individual widgets to the root layout panel, I'd add panels, and put the widgets inside them.  That helps get around some of the browser idiosyncrasies, particularly with select tags. It looks like the RootLayoutPanel adds a div wrapper around any widget you add to it, and actually applies the sizing to that. The widget you added is then set to have top, bottom, left, and right all at 0 within that div.

Note that it can be changed using setWidget{Horizontal|Vertical}Position. 

--
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.

No comments:

Post a Comment