cheerq / flexmdi

Automatically exported from code.google.com/p/flexmdi
0 stars 0 forks source link

context menu max on non active window does not maximize correctly #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. This can be seen by the mdi explorer at 
http://www.returnundefined.com/flexmdi/explorer/
2. Go to the above site and right click on window 1 and select maximize 
without making the window active.
3. Window 1 will be maximized but window 2 can be seen inside of window 1

What is the expected output?Window should be maximize without other 
windows being visible. What do you see instead? Other windows can be seen 
when the non active window is maximized thru the context menu. Perhaps the 
option should not visible if the window is active or make the window 
active when context menu is shown.

What version of the product are you using?I believe its version 1.0 that 
the site http://www.returnundefined.com/flexmdi/explorer/ is using. On 
what operating system? XP

Please provide any additional information below.

Original issue reported on code.google.com by vince.ja...@gmail.com on 3 Oct 2007 at 2:33

GoogleCodeExporter commented 8 years ago
This also causes an exception when you double click on the title bar to restore:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at flexmdi.effects.effectsLib::MDIVistaEffects/getWindowRestoreEffect()
    at flexmdi.managers::MDIManager/::windowEventProxy()
    at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
n()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at flexmdi.containers::MDIWindow/maximizeRestore()

Attaching screen shot of the original error

Original comment by vince.ja...@gmail.com on 3 Oct 2007 at 2:37

Attachments:

GoogleCodeExporter commented 8 years ago
For the exception it caused because restoreTo function paramter in 
getWindowRestoreEffect() is null. I fixed it by saving off the setting before 
the 
maximize is performed so in the maximize() function I call savePanel() which 
should 
avoid the null reference.

Original comment by vince.ja...@gmail.com on 9 Oct 2007 at 6:46

GoogleCodeExporter commented 8 years ago
I also worked around the original issue by bringing the window to the front in 
the 
maximize() function e.g. bringToFront();

Original comment by vince.ja...@gmail.com on 9 Oct 2007 at 7:44

GoogleCodeExporter commented 8 years ago

Original comment by ben.clin...@gmail.com on 11 Jan 2008 at 3:58