Hi,

 

I want to center a child of a canvasLayout and don't know how to do it.

 

I tried this:

 

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

                  

main.set({

width : "100%",

                        height : "100%"

                  });

                  

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

                  loginMain.set({

                        width : 500,

                        height : 300,

                        backgroundColor : "#BFBFBF",

                        horizontalAlign : "center"

 

                        

                  });

                  main.add(loginMain);

 

 

 

that doesn't work.

An Atom has something like horizontalChildrenAlign. 

Is there a similar way?

 

 

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