DisclosurePanel p = new DisclosurePanel("Header", false);
HorizontalSplitPanel s = new HorizontalSplitPanel();
public void onModuleLoad() {
p.addEventHandler(new DisclosureHandler() {
public void onClose(DisclosureEvent event) { }
public void onOpen(DisclosureEvent event) {
s.setSplitPosition("50%");
}
});
RootPanel.get().add(p);
p.setContent(s);
s.setSize("100px", "100px");
s.setLeftWidget(new HTML("Hello"));
s.setRightWidget(new HTML("World"));
}
regards
gregor
On Aug 22, 7:28 pm, "Ian Bambury" <
ianbamb...@gmail.com> wrote:
> Any ideas gratefully welcomed...
>
> 2008/8/20 Ian Bambury <
ianbamb...@gmail.com>
>
>
>
> > If you do something like this...
>
> > DisclosurePanel p = new DisclosurePanel("Header", false);
> > RootPanel.get().add(p);
> > HorizontalSplitPanel s = new HorizontalSplitPanel();
> > p.setContent(s);
> > s.setSize("100px", "100px");
> > s.setLeftWidget(new HTML("Hello"));
> > s.setRightWidget(new HTML("World"));
>
> > then the splitter is right over on the left when you open the disclosure
> > panel.
>
> > It's OK if the disclosure panel is open.
>
> > Anyone know of a workaround? (Other than creating it open and closing it
> > with a DeferredCommand which gives a 'pop' of the open panel)
>
> > Cheers,
> > Ian
> > --
>
> >
http://examples.roughian.com
>
> --
> Ianhttp://
examples.roughian.com