Hi there,
I'm trying to use the newly (version 2.0) introduced TabLayoutPanel.
What I also want is that the embedded widget in each panel's tab has a
height of 100% (take the whole vertical place). In order to do so I
just made a very simple example (no CSS, no customisation, no noting)
that look like that:
public void onModuleLoad() {
TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX);
// do not work
// p.setHeight("100%");
// work
p.setHeight("700px");
p.add(new HTML("this"), "[this]");
p.add(new HTML("that"), "[that]");
p.add(new HTML("the other"), "[the other]");
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel.get().add(p);
}
The html is trivial and only contains a <div id="main"></div>. As you
can guess I have a problem. When I say that the height should be 100%
I see nothing. I can click on the various tabs no panel appears /
changes. But when I say that the height should be XXXpx (any height
will do the trick) then it works like a charm.
Of course what I really want is the max height available in the
browser window that is a 100%.
Did any one already succeed in doing such a thing? What am I missing?
Thanks for helping.
CU Jerome
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.