Hello Mustafa,
you have to set the align properties on the widgets you want to align
not on the parent. So adding the following lines to your example helps:
labelDay.setAlignX("center");
labelTime.setAlignX("center");
The setting of the properties alignX and alignY can be removed for the
timerbox. The alignY is not supported by the layout you choose. Do you
need the timerbox at a specific height and the content should be
middled or is the floating height of the timerbox ok?
Best,
Martin
Am 19.07.2009 um 19:19 schrieb Mustafa Sak:
Hi List,
i know this question is maybe the most asked in here. But i can't
figure it out. I Just want to align my stuff centered, but my lables
are just at the left top corner, what i am doing wrong:
//snipp
getTimerbox : function()
{
var timerbox = new qx.ui.container.Composite(new
qx.ui.layout.VBox());
timerbox.set({
backgroundColor:"white",
alignX: "center",
alignY: "middle"
});
var labelDay = new qx.ui.basic.Label("Test");
timerbox.add(labelDay);
var labelTime = new qx.ui.basic.Label("Test");
timerbox.add(labelTime);
timerbox.updateLayoutProperties(null);
timerbox.labelDay = labelDay;
timerbox.labelTime = labelTime;
return timerbox;
},
//snipp
regards Msutafa Sak
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited
time,
vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See
full prize
details at:
http://p.sf.net/sfu/Challenge_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel