That's the way is is supposed to work - if there is nothing to
display, then there is, well, nothing to display.

If you use a sensible doctype, you will get (more) consistent results
- I.E. will behave better (well, the old ones won't)

The old versions of IE used to have an empty linebox in there which
preserved space

Ian

http://examples.roughian.com



2008/11/7 mwaschkowski <[EMAIL PROTECTED]>:
>
> OK, the solution is basically that you have to add a label (even a
> completely empty Label!) or else the horizontal panel is not
> displayed, regardless if you set a height or not.
>
> ie.
>            HorizontalPanel separaterPanel = new HorizontalPanel();
>            separaterPanel.setWidth("90%");
>            separaterPanel.add(new Label(""));
>            DOM.setStyleAttribute(separaterPanel.getElement(),
> "borderBottom", "1px solid #DCDCDC");
>            DOM.setStyleAttribute(separaterPanel.getElement(),
> "margin", "7px");
>
> Why does adding the label make the horizontal panel be displayed? Or,
> why won't the HP be displayed without something inside?
>
> Thanks,
>
> Mark

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to