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);



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