Tuesday, September 24, 2013

Re: Style problems with Firefox+LayoutPanel


On Tuesday, September 24, 2013 7:08:42 AM UTC-4, Thomas Broyer wrote:


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. 

Interesting - so setting the vertical position to BEGIN actually removes the bottom: 0; on the select within its layer.  It's also nice that the Javadocs for the method point out the "within its layer" part.  (It would be even nicer if methods like setWidgetLeftWidth noted that you're actually setting the parameters for the layer, not for the widget itself.)

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