Hi Jim,

On Saturday January 23 2010 03:36:32 Jim Hunter wrote:
> I am working with .8.3 still and I am having a bit of odd behavior with the
> resize event. I have a control that is from another company that I am using
> inside an embed.Html control. When that Html control is resized, I want to
> resize the other control to match it's size. The problem is that the sizes
> reported in the resize event are not the 'real' size of the control at the
> time the resize event it triggered. The sizes are the sizes that the
>  control 'will' be once all the rendering is finished. So what is happening
>  is that in the resize event, I am updating the other control, telling it
>  to resize itself (it is automatic and fills up it's DIV container). At the
>  time I tell the control do refresh itself, the container DIV has not been
>  re-drawn and it is still the old size. So my other control renders at the
>  wrong size. Is there an event I can attach to that is fired after
>  everything is fully rendered to the screen?
> 
> Oh, the reason my other control is not sizing correctly is because it is
> working directly with the DOM, and at the time the resize even is fired,
>  the DOM has not been updated. There is probably a simple solution to this
>  that I am overlooking, so please forgive me if I sound stupid right now.
One thing what might help is to flush the widget queue manually so the DOM is 
updated right away.

"qx.ui.core.queue.Widget.flush" has to be called to flush the queue.

Hope this helps,
  Alex

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to