Hi Christian,

> I want to align the child widgets of a qx.ui.form.ListItem at the top
> of the widget and am not successful.
The trick is to set a specific height for the icon child control. As default 
the icon child control gets the height of the contained image (64px in your 
case). Since your listItem widget is 300px high the child control is rendered 
in the middle (vertically).

Adding the lines (and removing the other ones)

--snip--
listItem.getChildControl("icon").setHeight(300);
listItem.getChildControl("label").setHeight(300);
--snip--

does align the icon and the label vertically at the top.

Don't know if there's a better, more elegant solution, but this works for me.

Regards,
  Alex

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to