Hi,

you use the protected "_add" method to add your widgets, use the public 
"add" method instead. By the way, please do not use protected methods 
form other classes this is evil.

http://tinyurl.com/24d7qxj

Cheers,
Chris

Am 23.12.2010 00:53, schrieb icarusfactor:
> I have a layout made with "dock" then I add a "GroupBox" type inside.
> I can set the label of the "GroupBox" just fine, if I add a widget they all
> just get layered on top of the group box label.  What am I doing wrong?
>
> I can do each separately just fine, but mixing them is causing problems.
>
>
> ----snippet-----------
>
>        var dock = new qx.ui.layout.Dock(2, 2);
>        dock.setSort("x");
>
>        var widget1 = (new qx.ui.container.Composite(dock)).set(
>        {
>          decorator: "main",
>          allowGrowX : true,
>          allowGrowY : true,
>          allowShrinkY : true,
>          allowShrinkX : true
>        });
>
>        var w3 = new qx.ui.core.Widget().set({decorator: "main" });
>
>        var w5 = new qx.ui.core.Widget().set({decorator: "main",
> backgroundColor: "white"});
>
>
>        widget1.add(w3, {edge:"south"});
>        widget1.add(w5, {edge:"center"});
>
>        var box1 = new qx.ui.groupbox.GroupBox("Screen Size",
> "icon/16/apps/utilities-text-editor.png");
>        box1.set({
>         width: 300
>        });
>
>        widget1._add( box1 , {edge:"west"});
>
>        box1.setLayout(new qx.ui.layout.VBox());
>
>        box1._add(new qx.ui.form.CheckBox("Set to current screen size").set(
>        {
>          backgroundColor: "blue",
>          allowGrowX : true,
>          allowGrowY : true,
>          maxWidth : 300,
>          minWidth : 300
>        }) );
>
>    page1.add( widget1,  {flex: 1} );
>
>
> -------snippet------------
>
>


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to