views:

28

answers:

1

I need to do some updates to components after a user has resized the browser window. Is there a good solution to determine when a user has completed resizing? I wasn't able to find any flex events that would cover this case.

+1  A: 

There's no "perfect" solution unfortunately. All you get is repeated RESIZE events. The user can stop resizing, and resume again, at any time, which is not foreseeable.

Probably the best (but not nearly perfect) solution would be to start a timer when you get a RESIZE event. When the timer fires, do what you have to do (resize complete). When you get a RESIZE event while the timer is still running, ignore the event and restart the timer.

Claus Wahlers