[ 
https://issues.apache.org/jira/browse/FLEX-33189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13662460#comment-13662460
 ] 

Mark Kessler edited comment on FLEX-33189 at 5/21/13 12:46 AM:
---------------------------------------------------------------

Retested with the below app.  Still an a reproducible bug.  Popup attempts to 
center on the BorderContainer and ends up to the right on it.  It does not 
produce this behavior when the RTL is removed.  This might have been resolved 
at one time in the [1] Adobe bug, but it seems to have reappeared.

[1] http://bugs.adobe.com/jira/browse/SDK-27060

<?xml version="1.0" encoding="utf-8"?>
<!---
   Test application
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
               xmlns:s="library://ns.adobe.com/flex/spark"
               layoutDirection="rtl" direction="rtl"> 

    <fx:Script>
        <![CDATA[

        import mx.controls.Alert;
        import mx.managers.PopUpManager;

        [Bindable]
        protected var nPopupCenterX:int = 0;
        [Bindable]
        protected var nPopupCenterY:int = 0;


        protected function button1_clickHandler(event:MouseEvent):void
        {
            var oPopup:Alert = Alert.show("Bugs happen :(", "RTL Bug", 
Alert.OK, borderWhatnot);

            oPopup.validateNow();

            nPopupCenterX = oPopup.x + (oPopup.width / 2);
            nPopupCenterY = oPopup.y + (oPopup.height / 2);
        }

        ]]>
    </fx:Script>

    <s:layout>
        <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" 
gap="0" />
    </s:layout>

    <s:BorderContainer id="borderWhatnot" width="200" height="300">
        <s:Button label="Show alert" verticalCenter="0" horizontalCenter="0" 
click="button1_clickHandler(event)" />
    </s:BorderContainer>


    <s:Label text="borderContainer center X: {borderWhatnot.x + 
(borderWhatnot.width / 2)}, popup center x: {nPopupCenterX}" />
    <s:Label text="borderContainer center Y: {borderWhatnot.y + 
(borderWhatnot.height / 2)}, popup center x: {nPopupCenterY}" />

</s:Application>
                
      was (Author: paeros):
    Retested with the below app.  Still an a reproducible bug.  Popup attempts 
to center on the BorderContainer and ends up to the right on it.  It does not 
produce this behavior when the RTL is removed.  This might have been resolved 
at one time in the [1] Adobe bug, but it seems to have reappeared.

[1] http://bugs.adobe.com/jira/browse/SDK-27060

<?xml version="1.0" encoding="utf-8"?>
<!---
   Test application
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
               xmlns:s="library://ns.adobe.com/flex/spark"
               layoutDirection="rtl" direction="rtl"> 

    <fx:Script>
        <![CDATA[

        import mx.controls.Alert;

        protected function button1_clickHandler(event:MouseEvent):void
        {
            Alert.show("Bugs happen :(", "RTL Bug", Alert.OK, borderWhatnot);
        }

        ]]>
    </fx:Script>

    <s:layout>
        <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" 
gap="0" />
    </s:layout>

    <s:BorderContainer id="borderWhatnot" width="200" height="300">
        <s:Button label="Show alert" verticalCenter="0" horizontalCenter="0" 
click="button1_clickHandler(event)" />
    </s:BorderContainer>

</s:Application>
                  
> centerPopUp() doesn't work correctly with layoutDirection=='rtl' 
> -----------------------------------------------------------------
>
>                 Key: FLEX-33189
>                 URL: https://issues.apache.org/jira/browse/FLEX-33189
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Adobe Flex SDK 4.6 (Release), Apache Flex Next
>         Environment: Windows, internet explorer
>            Reporter: Tamar Amit
>              Labels: Popup, rtl
>
> Hello, 
> I am working on the 4.6 SDK on a rtl application and I see that the center 
> pop up issue is constantly reproduced over there.
> I saw that on https://issues.apache.org/jira/browse/FLEX-24552 you have 
> stated that the issue had been solved. 
> Can you please advise if there is an official version with this fix I can 
> download in order to make it work? 
> Thanks in advance, 
> Tamar 

--
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

Reply via email to