You can't add splitpanels to widgets (or in the case of your tab panel) to
parts of widgets which are hidden when they are added to the DOM.

In IE, the splitter ends up on the left/top in FF all the dovs (the two
containing divs and the splitter) end up stacked up on each other with the
splitter not visible, just the second bit of content.

You also can't add the split panel to a visible part of the DOM then move it
- the three internal elements end up in the right formation, but stuck at
point 0,0.

And you can't subclass and override the duff bits because split panels are
final.

Even if you get it to work by adding it to a tab and then closing it (you
have to use a deferred command nested in another deferred command because
the split panels use a deferred command), the user will still see it, and if
the tab panel is part of a page you swap out, when you come back, it will be
screwed up.
Basically, you can add them to a visible portion of your screen so long as
you don't move them. Anything else, and, AFAICT, you're screwed.

Ian

2008/8/26 loott <[EMAIL PROTECTED]>

>
> Hello,
>
> I'm trying to add a VerticalSplitPanel to a TabPanel. The widget is
> added but the method setSplitPosition doesn't work anymore.... Do you
> know if this behaviour is normal or if it's a bug?
>
> Example of VerticalSplitPanel with setSplitPosition working:
> public void onModuleLoad() {
>
>        HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
>        splitPanel.setSize("800px", "600px");
>        splitPanel.setLeftWidget(new Label("label 1"));
>        splitPanel.setRightWidget(new Label("label 2"));
>        splitPanel.setSplitPosition("30%");
>        RootPanel.get().add(splitPanel);
> }
>
> Example of VerticalSplitPanel with setSplitPosition failing:
>
> public void onModuleLoad() {
>
>
>        HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
>        splitPanel.setSize("800px", "600px");
>        splitPanel.setLeftWidget(new Label("label 1"));
>        splitPanel.setRightWidget(new Label("label 2"));
>        splitPanel.setSplitPosition("30%");
>
>        VerticalPanel verticalPanel = new VerticalPanel();
>        verticalPanel.setSize("800px", "600px");
>        verticalPanel.add(splitPanel);
>        TabPanel tabPanel = new TabPanel();
>        tabPanel.setSize("800px", "600px");
>        tabPanel.add(verticalPanel, "split");
>        RootPanel.get().add(tabPanel);
>
> }
>
>
> Best Regards
>
> >
>


-- 
Ian
http://examples.roughian.com
___________________________________

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___________________________________

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