Thanks for taking a closer look!
I guess the popup is moved to x = 0, y = 0 initially and while the combobox is
processed, the layout queue is dirty, the new position does not get applied and
in effect, the popup stays there for a fraction of a second. The patch you
provided seems like a sensible work-around because the popup is not visible
until the correct (final) position is applied.
However, this looks like an issue we should dive in more deeply. Can you please
file a bug report and attach your patch?
Regards
Tristan
Am 09.09.2011 um 16:28 schrieb Jeroen Smit:
> Hi,
>
> Unfortunaltely I cannot test in 1.5
> We've just upgraded to 1.4.1 and another upgrade would take too much time now.
> I did implement a workaround that fixed this issue for us. Maybe that make
> sense to you?
>
> After creating the combo and adding it to the parent, I added the following
> piece of code. In comment I explained what it solves. Can you confirm this
> could be the issue?
>
> var result = new qx.ui.form.ComboBox();
> ....
> var popup = result.getChildControl("popup");
> // When the combobox's popup contains a lot of items
> // the first time it is shown/built takes some time.
> // In qx.ui.popup.Popup.show() the popup will be automatically
> // added to the application's root as some workaround for a bug (see Popup.js
> for details).
> // We do this here to prevent the popup from being shown at screen
> coordinates (0, 0) before
> // moving it to the right place.
> if (popup.getLayoutParent() == null) {
> popup.moveTo(-1000, -1000); // make sure it is not visible
> qx.core.Init.getApplication().getRoot().add(popup);
> }
>
> Best regards,
> Jeroen
>
> -----Original Message-----
> From: Tristan Koch [mailto:[email protected]]
> Sent: vrijdag 9 september 2011 3:59 PM
> To: qooxdoo Development
> Subject: Re: [qooxdoo-devel] placement mode and comboboxes with many items
>
> Hi,
>
> I believe I've seen this once or twice, but I have never been able to
> reproduce it reliably. Also, can you check in 1.5?
>
> Tristan
>
> Am 31.08.2011 um 17:33 schrieb Jeroen Smit:
>
>> Hi,
>>
>> I noticed that when I have a combobox with many items in it (e.g. more than
>> a couple of hundred) when the dropdown list opens it is shown in the top
>> left coordinate of my application for a fraction of a second before it is
>> shown in the correct place (i.e. just below the combobox). After some
>> experiments it seems to have to do with the placement mode. Has anyone ever
>> seen this before?
>> Met vriendelijke groet,
>> Kind regards,
>>
>> Jeroen Smit
>> Expert Software Engineer
>>
>> ORTEC | Groningenweg 6k | PO Box 490 | 2800 AL Gouda | The Netherlands
>> Tel.+31 (0) 182 540 500 | Fax +31 (0) 182 540 540 | [email protected] |
>> www.ortec.com
>> P Please consider the environment before printing this e-mail
>>
>>
>> ------------------------------------------------------------------------------
>> Special Offer -- Download ArcSight Logger for FREE!
>> Finally, a world-class log management solution at an even better
>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
>> download Logger. Secure your free ArcSight Logger TODAY!
>> http://p.sf.net/sfu/arcsisghtdev2dev_______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------------
> Why Cloud-Based Security and Archiving Make Sense
> Osterman Research conducted this study that outlines how and why cloud
> computing security and archiving is rapidly being adopted across the IT
> space for its ease of implementation, lower cost, and increased
> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ------------------------------------------------------------------------------
> Why Cloud-Based Security and Archiving Make Sense
> Osterman Research conducted this study that outlines how and why cloud
> computing security and archiving is rapidly being adopted across the IT
> space for its ease of implementation, lower cost, and increased
> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel