On 2/4/13 9:49 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:

> 
> Hi Alex,
> 
> Bingo, the dropShadowEnabled of the non modal titleWindow has to be set to
> false and it works.
> 
> But still, to me, it looks like more a trick than what it is expected as a
> modal itself should avoid this behavior, at least, my first trick setting the
> x of the modal to -1 cover all these kinds of cases, what do you think ?
IMO, there are trade-offs to be made.  What are the chances someone will hit
this problem and what is the cost of preventing it?  For popups, you don't
want to delay the popup from showing for another 250ms just to get this
right.  So it depends on how expensive the fix is.  And you could get tricky
and delay the fix until after the popup is up since folks take a while to
read what is up before poking around.

I want to know more about why we have this problem.  It could be that, once
you have the non-modal draw into negative coordinates that there is a
half-pixel available at 0,0 to hit, or it could be that the negative
coordinates stretches the stage bounds beyond stage.stageWidth and
stage.stageHeight and the modal doesn't get sized and positioned correctly.
Then we'll know if just expanding to -1 is sufficient, but I would also
spend time considering what stage properties change when you do that and how
that would affect backward compatibility and how stage scalemode works.

If it is a half-pixel issue, the modal window might need to be drawn
differently to cover the half-pixel without actually drawing to -1.

> 
> Frédéric THOMAS
> 
>> From: aha...@adobe.com
>> To: dev@flex.apache.org
>> Date: Mon, 4 Feb 2013 20:02:59 -0800
>> Subject: Re: [jira] [Commented] (FLEX-33377) 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 di
>> 
>> I will try to find time to take a look.  Are you sure the display object we
>> use behind the modal window fully covers the non-modal?  There might be
>> corner cases around borders, dropshadows and filters in the background
>> object and the non-modal that allow for the mouse to pass through.
>> 
>> 
>> On 2/4/13 4:12 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
>> 
>>> 
>>> Hi,
>>> 
>>> Is there someone with a better understanding than me could determinate if
>>> it's
>>> a player bug or a sdk one ?
>>> 
>>> I proposed what I think is a quick and dirty monkey patch to the reporter
>>> but
>>> didn't find anything explaining why that happens.
>>> 
>>> Thanks,
>>> Frédéric THOMAS
>>> 
>>>> From: webdoubl...@hotmail.com
>>>> To: dev@flex.apache.org
>>>> Subject: Re: [jira] [Commented] (FLEX-33377) 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 dime
>>>> Date: Sat, 2 Feb 2013 17:56:25 +0100
>>>> 
>>>> Hi Om,
>>>> 
>>>> No, the actual code looks good to me, until the cause of why it happens
>>>> like
>>>> that hasn't been clearly identified, I won't do anything, at the moment I
>>>> don't at all, maybe someone with better understanding can have look.
>>>> 
>>>> -Fred
>>>> 
>>>> -----Message d'origine-----
>>>> From: Om
>>>> Sent: Friday, February 01, 2013 7:51 PM
>>>> To: dev@flex.apache.org
>>>> Subject: Re: [jira] [Commented] (FLEX-33377) 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.
>>>> 
>>>> Frédéric,
>>>> 
>>>> Will you be applying the same fix on the develop branch as well?
>>>> 
>>>> Thanks,
>>>> Om
>>>> 
>>>> On Fri, Feb 1, 2013 at 9:56 AM, Frédéric THOMAS (JIRA)
>>>> <j...@apache.org>wrote:
>>>> 
>>>>> 
>>>>>     [
>>>>> https://issues.apache.org/jira/browse/FLEX-33377?page=com.atlassian.jira.p
>>>>> lu
>>>>> gin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568912#comme
>>>>> nt
>>>>> -13568912]
>>>>> 
>>>>> Frédéric THOMAS commented on FLEX-33377:
>>>>> ----------------------------------------
>>>>> 
>>>>> The only trick you have to know with monkey patches is that the patch has
>>>>> to be in your main app, same package than the original and you have to
>>>>> compile with the option merge into memory.
>>>>> 
>>>>> Thanks for reporting.
>>>>> 
>>>>>> 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
>>>>> 
>>>> 
>>>  
>> 
>> -- 
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>  

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to