[
https://issues.apache.org/jira/browse/FLEX-33377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573828#comment-13573828
]
Alex Harui commented on FLEX-33377:
-----------------------------------
I think you only need to do:
g.clear();
g.beginFill(c, 100);
g.lineStyle(1, c, 100, true);
g.drawRect(screen.x, screen.y, screen.width, screen.height);
g.endFill();
DrawRect should use the prevailing lineStyle, although you may want to verify
the corners are square.
The reason I thought this was simpler was because it was less likely you would
make a mistake. For example, I think your proposal of
g.drawRect(screen.x-1, screen.y-1, screen.width+1, screen.height+1)
is incorrect. I think it should be:
g.drawRect(screen.x-1, screen.y-1, screen.width+2, screen.height+2)
because I think you need to overflow the right and bottom edges as well.
So use either the lineStyle if the corners are square or width+2/height+2.
> Focus can be transferred from a modal window to a non-modal window open in
> the background if clicked on some specific dimension of the non-modal window
> in the background i.e. by clicking on the extreme left i.e. x=0 dimension of
> the application.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FLEX-33377
> URL: https://issues.apache.org/jira/browse/FLEX-33377
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: Window
> Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Web application, flex SDK 4.6. and 4.9
> Flash player version: 11.5.502.146
> Mozilla firefox and IE
> Reporter: rahul singh rawat
> Priority: Minor
> Attachments: Modal_mxTest.fxp, Modal_mxTest-MonkeyPatched.fxp
>
>
> Focus can be transferred from a modal window to a non-modal window open in
> the background if clicked ONLY on some specific dimension of the non-modal
> window in the background i.e. by clicking on the extreme left i.e. x=0
> dimension of the application. Issue varies with flash player versions and
> browser used. The non-modal window is coded to listen to a click event.
> However it can be easily reproduced with any browser or flash player version
> by setting the x dimension of the non-modal window between-10 to 0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira