On Monday, May 21, 2012 11:50:32 AM UTC+2, fg wrote:
>
> GWT 2.4
>
> public void onModuleLoad() {
>
> TabLayoutPanel tabLayoutPanel = new TabLayoutPanel(2.5, Unit.EM); //
> or using TabPanel instead
> tabLayoutPanel.add(new Label("hi"), "tab");
> RootPanel.get().add(tabLayoutPanel);
>
> }
>
> It only shows the tab, but the label (or other kind of widget under
> test) is invisible. Why?
>
Layout panels (RequiresResize) should go into other layout panels
(ProvidesResize) or be given explicit size.
See
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize
--
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/-/RcXG8FTqAz4J.
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/google-web-toolkit?hl=en.