max3000
unread,Jun 30, 2009, 7:44:44 PM6/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
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
I'm trying to surround a HSP (height: 100%) with a DecoratorPanel. I
can get it to work in Hosted, IE and Chrome. Unfortunately, no
combination seems to work in Firefox.
The code is straightforward:
public void test(Panel parentPanel) {
HorizontalSplitPanel hSplitPanel = new HorizontalSplitPanel();
// hSplitPanel.setHeight("100%");
// hSplitPanel.setHeight("100px");
hSplitPanel.setLeftWidget(new Label("left"));
hSplitPanel.setRightWidget(new Label("right"));
DecoratorPanel decPanel = new DecoratorPanel();
decPanel.setHeight("100%");
decPanel.setWidget(hSplitPanel);
parentPanel.add(decPanel);
}
(BTW, parentPanel in my case is a RootPanel.)
In firefox, the code above doesn't show neither the split line, "left"
or "right".
Un-commenting the first line does nothing (same behavior).
Un-commenting the second line works (split line and texts are shown in
firefox) but the HSP is not 100% in height.
What am I missing?
Thanks,
Max