Use {flex:1} as second parameter in your add() calls.

Cheers,
Fritz

On Thu, 17 Jun 2010, alexander.volik wrote:

>
> I am trying to get  layoout that expands/shrinks to utilize the full browser
> window.
> Here is my code
>
> var scroll = new qx.ui.container.Scroll();
> this.getRoot().add(scroll, {edge: 0});
>
> var composite = new qx.ui.container.Composite(new qx.ui.layout.VBox());
>
> scroll.add(composite);
>
> composite.add(new qx.ui.basic.Label('Label'));
>
> var tabView = new qx.ui.tabview.TabView();
> var tab = new qx.ui.tabview.Page("Locations");
> tabView.add(tab);
>
> composite.add(tabView)
>
> But as you can see, tabView takes all available space only in horizontal
> while Vbox layout using or vertical while HBox using. What should I do to
> make tabView taking free space in two directions?
> http://tinyurl.com/38o782x
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to