Re: TabLayoutPanel at 100% height
Many thanks kozura it indeed solves the problem. CU Jerome On 13 avr, 20:58, kozura wrote: > You need to add it to the RootLayoutPanel vs the RootPanel, as > specified > here:http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#La... > > You may also want to put it inside one of the other *LayoutPanels like > a DockLayoutPanel. > > On Apr 13, 8:09 am, Jérôme wrote: > > > Hi there, > > > I'm trying to use the newly (version 2.0) introduced TabLayoutPanel. > > What I also want is that the embedded widget in each panel's tab has a > > height of 100% (take the whole vertical place). In order to do so I > > just made a very simple example (no CSS, no customisation, no noting) > > that look like that: > > > public void onModuleLoad() { > > TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX); > > // do not work > > // p.setHeight("100%"); > > // work > > p.setHeight("700px"); > > p.add(new HTML("this"), "[this]"); > > p.add(new HTML("that"), "[that]"); > > p.add(new HTML("the other"), "[the other]"); > > > // Add the nameField and sendButton to the RootPanel > > // Use RootPanel.get() to get the entire body element > > RootPanel.get().add(p); > > > } > > > The html is trivial and only contains a . As you > > can guess I have a problem. When I say that the height should be 100% > > I see nothing. I can click on the various tabs no panel appears / > > changes. But when I say that the height should be XXXpx (any height > > will do the trick) then it works like a charm. > > > Of course what I really want is the max height available in the > > browser window that is a 100%. > > > Did any one already succeed in doing such a thing? What am I missing? > > > Thanks for helping. > > > CU Jerome -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel at 100% height
You need to add it to the RootLayoutPanel vs the RootPanel, as specified here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels You may also want to put it inside one of the other *LayoutPanels like a DockLayoutPanel. On Apr 13, 8:09 am, Jérôme wrote: > Hi there, > > I'm trying to use the newly (version 2.0) introduced TabLayoutPanel. > What I also want is that the embedded widget in each panel's tab has a > height of 100% (take the whole vertical place). In order to do so I > just made a very simple example (no CSS, no customisation, no noting) > that look like that: > > public void onModuleLoad() { > TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX); > // do not work > // p.setHeight("100%"); > // work > p.setHeight("700px"); > p.add(new HTML("this"), "[this]"); > p.add(new HTML("that"), "[that]"); > p.add(new HTML("the other"), "[the other]"); > > // Add the nameField and sendButton to the RootPanel > // Use RootPanel.get() to get the entire body element > RootPanel.get().add(p); > > } > > The html is trivial and only contains a . As you > can guess I have a problem. When I say that the height should be 100% > I see nothing. I can click on the various tabs no panel appears / > changes. But when I say that the height should be XXXpx (any height > will do the trick) then it works like a charm. > > Of course what I really want is the max height available in the > browser window that is a 100%. > > Did any one already succeed in doing such a thing? What am I missing? > > Thanks for helping. > > CU Jerome -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TabLayoutPanel at 100% height
Hi there, I'm trying to use the newly (version 2.0) introduced TabLayoutPanel. What I also want is that the embedded widget in each panel's tab has a height of 100% (take the whole vertical place). In order to do so I just made a very simple example (no CSS, no customisation, no noting) that look like that: public void onModuleLoad() { TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX); // do not work // p.setHeight("100%"); // work p.setHeight("700px"); p.add(new HTML("this"), "[this]"); p.add(new HTML("that"), "[that]"); p.add(new HTML("the other"), "[the other]"); // Add the nameField and sendButton to the RootPanel // Use RootPanel.get() to get the entire body element RootPanel.get().add(p); } The html is trivial and only contains a . As you can guess I have a problem. When I say that the height should be 100% I see nothing. I can click on the various tabs no panel appears / changes. But when I say that the height should be XXXpx (any height will do the trick) then it works like a charm. Of course what I really want is the max height available in the browser window that is a 100%. Did any one already succeed in doing such a thing? What am I missing? Thanks for helping. CU Jerome -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.