# Maximize Window in AIR Problem

**URL:** <https://forum.kirupa.com/t/maximize-window-in-air-problem/261245>\
**Category:** flash\
**Created:** [May 24, 2008, 9:53pm UTC](https://forum.kirupa.com/t/maximize-window-in-air-problem/261245 "2008-05-24T21:53:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![motionsmith](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Post date:** [May 24, 2008, 9:53pm UTC](https://forum.kirupa.com/t/maximize-window-in-air-problem/261245/1 "2008-05-24T21:53:19Z")

</div>

Hello,

I’m trying to retrieve the width and height of a particular UIComponent in Flex whenever the stage resizes. (The component changes size whenever the stage resizes). This works great if I resize the AIR window by dragging the corner handle, but if I maximize the window, the component returns its PREVIOUS width and height at the time of the Event.RESIZE event. If I restore the window (or click “maximize” again), then it shows the maximized dimensions rather than the restored dimensions. It seems to be one step behind when I use the maximize button. Anyone ran into this problem or know the solution?

Thanks,  
Eric
