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