Thanks Alex, that was exactly what I was looking for!
--Tomek
Alex D. wrote:
> Try qx.ui.core.Widget.flushGlobalQueues() or when it doesn't help:
> window.setTimeout(function(){qx.ui.core.Widget.flushGlobalQueues()}, 1);
>
> Cheers,
> alex.d
>> Hi Guys,
>>
>> I have a strange behavior in my application. I have a toolbar button
>> that shows a menu (I'm showing it myself, it's not a menu button). I
>> want to reposition that menu (if it's visible) when the window gets resized.
>>
>> Here's what I have (assume that object 'obj' has a member 'menu' of
>> class qx.ui.menu.Menu):
>>
>> var obj = { ... };
>>
>> var doc = qx.ui.core.ClientDocument.getInstance();
>> doc.addEventListener("resize", function(e) {
>> if (obj.menu.isSeeable()) {
>> obj.menu.setTop(doc.getClientHeight() - 100));
>> }
>> });
>>
>> What happens is that after the windows is resized the menu does not
>> change it's location UNTIL the mouse cursor enters the area of the Web
>> page. Once that happens the menu is moved to its new location correctly.
>>
>> I also tried resizing the window twice (and more). The first resize the
>> menu will not be moved. After the second resize the menu will be moved
>> to the location it was supposed to be moved after the first resize. It's
>> a 1 resize lag. If I move the mouse inside the page the menu is
>> correctly relocated as before.
>>
>> Any ideas how to force the menu location change?
>>
>> --Tomek
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel