Right! vertical-align it is. Thank you Ian.

On 31 Mrz., 14:50, Ian Bambury <[email protected]> wrote:
>         FlowPanel fp = new FlowPanel();
>         fp.getElement().getStyle().setProperty("border", "1px dotted red");
>
>         DisclosurePanel dp;
>
>         fp.add(dp = new DisclosurePanel("DP1"));
>         dp.setContent(new HTML("Content"));
>         dp.setWidth("200px");
>         dp.getElement().getStyle().setProperty("display", "inline");
>         dp.getElement().getStyle().setProperty("verticalAlign", "top");
>         dp.getElement().getStyle().setProperty("border", "1px dotted blue");
>
>         fp.add(dp = new DisclosurePanel("DP1"));
>         dp.setContent(new HTML("Content"));
>         dp.setWidth("200px");
>         dp.getElement().getStyle().setProperty("display", "inline");
>         dp.getElement().getStyle().setProperty("verticalAlign", "top");
>         dp.getElement().getStyle().setProperty("border", "1px dotted blue");
>
>         RootPanel.get().add(fp);
>
> Ian
>
> http://examples.roughian.com
>
> 2009/3/31 alex.d <[email protected]>
>
>
>
> > ...just checked - it's IE that is having this sideeffect. FF is
> > working as expected.
>
> > On 31 Mrz., 14:26, "alex.d" <[email protected]> wrote:
> > > Thx Ian,
>
> > > it worked though it has one sideeffect. Now all the DPs are vertically
> > > alligned on the bottom edge of the FP. When one DP is opened it
> > > streches the FlowPanel vertically and all the other DPs are "shifted
> > > down". It's better than it was with HorizontalPanel but still, i
> > > think, not exactly what a user expects.
>
> > > On 31 Mrz., 14:01, Ian Bambury <[email protected]> wrote:
>
> > > > set the DPs to display:inline
> > > > Ian
>
> > > >http://examples.roughian.com
>
> > > > 2009/3/31 alex.d <[email protected]>
>
> > > > > Hi folks,
>
> > > > > i'm having some annoying issue with FlowPanel having DisclosurePanels
> > > > > in it. I would excpect flowpanel to to place disclosurepanels
> > > > > horizontally but instead it is placing them vertically (one under
> > > > > another) and i can't see why. Do you have any ideas?
>
> > > > > Thx
>
>
--~--~---------~--~----~------------~-------~--~----~
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