you can override the height of the content panel in CSS. if you are not using styles, you have to additionally set the height of the Vertical Panel you are adding inside your TabLayoutPanel.

~Ashwin

On Wednesday 16 November 2011 12:45:46 PM IST, Ash wrote:
p.setHeight("100%");

Setting the height of TabLayoutPanel to 100% as above doesn't work
either.

Ash

On Nov 15, 10:57 pm, Ashwin Desikan<ashwin.desi...@gmail.com>  wrote:
you have only provided the height of the tab bar which is 30 px. You
also have to set the height of the tabpael content. Set it to 100%

~Ashwin

On Wednesday 16 November 2011 12:01:48 PM IST, Ash wrote:



Can some one tell me why the TabLayoutPanel won't resize in the
following code.

            TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX);

            VerticalPanel vp = new VerticalPanel();

            // int array[] = new int [100];
            for (int i = 0; i<    100; i++) {
                    TextArea ta = new TextArea();
                    ta.setText(Integer.toString(i));
                    vp.add(ta);

            }

            p.add(vp, "New Tab");

            // Attach the LayoutPanel to the RootLayoutPanel. The latter will
listen for
            // resize events on the window to ensure that its children are
informed of
            // possible size changes.

            RootLayoutPanel rp = RootLayoutPanel.get();
            rp.add(p);- Hide quoted text -

- Show quoted text -



--
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-toolkit@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.

Reply via email to