The TabView will be stretched by the VBox where it is placed in. When 
you do not like this behavior you can do a tabview.setAllowGrowX(false). 
This protects the TabView from being stretched.

Sebastian


johndela1 schrieb:
> I have a page with a TabView.  I placed two lists on it so I can play with
> drag and drop.  The lists are as wide as the tab,  I tried calling setWidth
> or even setting width.  Any ideas of what I am doing wrong?
> 
> 
> 
> They don't respond...
> 
> here is some of my code:
> 
> qx.Class.define("custom.Application",
> {
>   extend : qx.application.Standalone,
> 
>   members :
>   {
>     main: function()
>     {
>       this.base(arguments);
> 
>       var container = new qx.ui.container.Composite(new
> qx.ui.layout.VBox(10));
>       container.setPadding(20);
> 
>       this.getRoot().add(container, {left:0,top:0});
> 
>       container.add(this.getTabView1());
>     },
> 
>     getTabView1 : function()
>     {
>       tabView = new qx.ui.tabview.TabView();
>       tabView.setWidth(1000);
>       tabView.setHeight(800);
> 
> 
>       ////////////////// TEST PAGE 1 ////////////////////
>       var page1 = new qx.ui.tabview.Page("Layout",
> "icon/16/apps/utilities-terminal.png");
>       page1.setLayout(new qx.ui.layout.VBox());
>       page1.add(new qx.ui.basic.Label("Layout-Settings"));
> 
>       var labelSource = new qx.ui.basic.Label("Source");
>       page1.add(labelSource);
> 
>       var source = new qx.ui.form.List;
>       source.setDraggable(true);
>       //source.setSelectionMode("multi");
>         source.maxWidth=100;
>         source.setWidth(100);
>       page1.add(source);
> 
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to