Hi,

 

I discussed this problem in another "thread". I just want to know if
this is a bug?

 

The problem:

I have tree widgets:

1.       qx.ui.layout.horizontalBoxLayout ( width: 100%, height: 100%,
horizontalChildrenAlign: "center")

2.       qx.ui.layout.CanvasLayout (width: "30%", height:  50)

3.       qx.ui.layout.CanvasLayout (width: "30%", height:  50)

 

 

When I place the 2 CanvasLayout-Widgets inside the horizontalBoxLayout
everything looks good. 

But when I resize my real IE or FF-Window, the 2 CanvasLayout-Widgets
are not centered in the hor-box anymore.

They were just moved to the side.

Without the attribute horizontalChildrenAlign: "center" it works fine.

 

Here is a complete example to reproduce this behavior:

 

var f1 = new qx.ui.layout.HorizontalBoxLayout;

f1.set({

      width : "50%",

      height : "100%",

      horizontalChildrenAlign: "center",

      backgroundColor: "red"

});

            

var f2 = new qx.ui.layout.CanvasLayout;

f2.set({

      width : "30%",

      height : 50,

      backgroundColor : "yellow"

}); 

 

var f3 = new qx.ui.layout.CanvasLayout;

f2.set({

      width : "30%",

      height : 50,

      backgroundColor : "blue"

}); 

 

 

f1.add(f2, f3);

 

 

so, is it a bug? Or is there a workaround?

 

Thanks

Tobias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to