Ok, i have not the final answer, but i had same problem, and was a css style problem. It seems if you put the split planel into a div wiht absolute position, browser do not display it. Same if you put in a div with a parent with absolute position. Any ideas about what could be the problem and his solution? Thanks !!
On 22 jun, 20:00, Paul Robinson <[email protected]> wrote: > Have you tried setting the split position on theverticalsplitpanel? > > mabogie wrote: > > Your code is fine, it must be something else: > > >http://imgur.com/Ngqnu.png > > > On 22 jun, 18:43, Parvez Shah <[email protected]> wrote: > > >> Hi, > >> My Tree component isnotshowingup inside theVerticalsplit pane any > >> suggestions on what I may be doing wrong. > > >> My component are laid out in this manner > >> I have a top level component > >> DockPanel > >> inside dockpaneli have a Horizontal split pane > >> in my horizontal split pane the left component isVerticalsplit pane > >> and in top ofverticalsplit pane I have a tree component > > >> Now the issue is that Tree component isnotshowingup, if i keep it > >> anywhere else it works fine.. > > >> The code is also attached for review > > >> public void onModuleLoad() { > > >> DockPanel mainPanel = new DockPanel(); > >> mainPanel.setBorderWidth(1); > >> mainPanel.setSize("100%", "100%"); > >> mainPanel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE); > >> mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER); > >> Widget header = new Label("Header"); > >> mainPanel.add(header, DockPanel.NORTH); > >> mainPanel.setCellHeight(header, "30px"); > >> Widget footer = new Label("Footer"); > >> mainPanel.add(footer, DockPanel.SOUTH); > >> mainPanel.setCellHeight(footer, "25px"); > > >> // Create a tree with a few items in it. > >> TreeItem root = new TreeItem("root"); > >> root.addItem("item0"); > >> root.addItem("item1"); > >> root.addItem("item2"); > > >> Tree t = new Tree(); > >> t.addItem(root); > > >> VerticalSplitPanel vSplit = new VerticalSplitPanel(); > > >> // If i don't set this value thepanelwillnotshow up properly > >> vSplit.setSize("100%", "100%"); > > >> //This IS THE PROBLEM COMPONENT > >> vSplit.setTopWidget(t); > > >> vSplit.setBottomWidget(new HTML("Bottom")); > > >> HorizontalSplitPanel hSplit = new HorizontalSplitPanel(); > > >> hSplit.setSplitPosition("50%"); > > >> hSplit.setLeftWidget(vSplit); > >> hSplit.setRightWidget(new HTML("right")); > > >> mainPanel.add(hSplit, DockPanel.CENTER); > > >> RootPanel.get().add(mainPanel); > > >> } > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
