TabLayoutPanel or TabPanel shows nothing but the Tab
152 views
Skip to first unread message
fg
unread,
May 21, 2012, 5:50:32 AM5/21/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
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?
Thomas Broyer
unread,
May 21, 2012, 5:56:40 AM5/21/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Layout panels (RequiresResize) should go into other layout panels (ProvidesResize) or be given explicit size.