HorizontalSplitPanel with DecoratorPanel in Firefox: how?

0 views
Skip to first unread message

max3000

unread,
Jun 30, 2009, 7:44:44 PM6/30/09
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

Fred Sauer

unread,
Jul 7, 2009, 1:30:12 PM7/7/09
to Google-We...@googlegroups.com
Max,

If you're using standards mode, height:100% get tricky. Can you try setting the height of the outer most container to a specific number of pixels, just as a test?

Fred
--
Fred Sauer
fr...@allen-sauer.com
Reply all
Reply to author
Forward
0 new messages