i tried setting the height of verticalpanel to 100% and also in px but
both didn't work.
Could be something  wrong with my code.


On Nov 15, 11:18 pm, Ashwin Desikan <[email protected]> wrote:
> 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<[email protected]>  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 -- 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 [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