开发者

How to know in Flex when the user has completed resizing the browser window

开发者 https://www.devze.com 2023-01-16 23:17 出处:网络
I need to do some updates to components after a user has resized the browser window.Is there a g开发者_如何转开发ood solution to determine when a user has completed resizing? I wasn\'t able to find an

I need to do some updates to components after a user has resized the browser window. Is there a g开发者_如何转开发ood solution to determine when a user has completed resizing? I wasn't able to find any flex events that would cover this case.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消