flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

Unable to determine when a MDIWindow has finished Maximizing/Restoring #345

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by TimN...@gmail.com on 2011-01-25T23:36:47

What steps will reproduce the problem?

  1. Create a MDIWindow with layout = absolute.
  2. Add a control using x/y coordinates and set visible to true.
  3. On minimize, hide the control (control.visible = false).
  4. On Maximize/Restore, try to get the control to appear in the same location.

What is the expected output? What do you see instead? I expect that my control would appear in the same position as it was in when the control was hidden. It is not. When I try to recalculate the position (the control is tied to another control that was created on a FormItem), sometimes it appears in the correct position, sometimes it does not. It appears that when the Maximize/Restore event fires, the event handler handles the event before it the window has completed maximizing/restoring. It would be helpful to have an event that lets you know when the window has finished maximizing/restoring.... MAXIMIZE_END, RESTORE_END maybe.

What version of the product are you using? On what operating system? flexlib2.5_flex3 on Windows XP workstation.

Please provide any additional information below.