Hi Christian,
> qx.ui.list.List is an incredible versatile and useful widget, ...
Thanks :-)
> However, since it is based on the qx.ui.virtual.* architecture, it is very
> hard to understand what goes on internally. I haven't been able to find out
> how to get to the internal widget responsible for styling the icon of the
> list item by looking through the source.
Sorry, the list is still experimental, so we have no useful 
documentation in the manual :-(
> What I want to do: take images of arbitrary size and scale them for use in
> the list, rather than to have to create fix-pixel sized images only for use
> in the list. Is that possible?
Yes, at the moment we only support widget rendering, so I can explain 
this one. To configure the height for the the image you have to change 
the default size for the row first:
list.setItemHeight(50);

Now the row has the default size from 50 pixel, but at the moment the 
used widget for item rendering doesn't support auto sizing, so it is 
important also to configure the widget. To configere a widget, we can 
use the same principle like with Data Binding, we use a delegate for 
this job:
list.setDelegate({
   configureItem : function(item) {
     item.getChildControl("icon").setWidth(48);
     item.getChildControl("icon").setHeight(48);
     item.getChildControl("icon").setScale(true);
});

The passed item is by default a qx.ui.form.ListItem so you can use the 
API to configure your needs.

If you have further questions, please ask.

Cheers,
Chris



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to