Priebe, Jason schrieb:
Here is a patch to QxComboBox to add a maxPopupHeight property.

Why we need a property of this? What's about to:

myComboBox.getPopup().getMaxHeight(150);

? I think this is enough. I don't like to mirror each property of the children to the combobox itself.


I would prefer to be able to specify this by the number of items
to display rather than using geometry, but I couldn't figure out
how to find the height of each item to convert from number of
items to number of pixels.

You can try it with myListItem.getBoxHeight but maybe this have bad influences to the overall rendering. This is currently a bug in some cases. So be warned ;)


There does seem to be a little glitch with QxComboBox in general,
where a scroll bar is shown even when all the list items fit in
the popup.  Is it possible there's some sort of sizing mismatch
between the list and the popup?

A glitch ;) in my opinion not. This is the intended behavior. The problem with auto-scrollbars is, that qooxdoo couldn't handle them enough currently. For example an appearing scrollbar should relayout the children. We will try to fulfill this requirement with the next generation of our layouter.


Anyway, attached is the patch.

Thanks.

Sebastian


Jason Priebe
CBC New Media



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to