flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reade (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34351) HTML content sits on top of Flex application
Date Mon, 02 Jun 2014 16:25:02 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Reade updated FLEX-34351:
-------------------------------

    Description: 
I'm trying to load a PDF document in my AIR application using the MX:HTML component. When
a popup opens, the HTML component's default behaviour is to hide the content when a popup
opens and reappear when the popup disappears. This is what I would expect.

However if the HTML content is reloaded while the popup is open, the HTML content is reappearing
automatically and sitting on top of the popup.

I can replicate this behaviour using Flex SDK 4.6, 4.11, 4.12 and 4.12.1.

Is this a normal behaviour? Is there a way to stop this from happening?

Here is some working sample code:

{quote}
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       creationComplete="maximize()">
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>
    <fx:Script>
        <![CDATA[
            import flash.utils.setTimeout;
            
            import mx.managers.PopUpManager;
            
            import spark.components.TitleWindow;
            
            private function openPopUp():void
            {
                var popup:TitleWindow = new TitleWindow();
                PopUpManager.addPopUp(popup, this, true);
                PopUpManager.centerPopUp(popup);
                
                setTimeout(function():void{html.reload()}, 1000);
            }
        ]]>
    </fx:Script>
    <s:Button click="openPopUp()" label="CLICK"/>
    <mx:HTML id="html" location="http://www.energy.umich.edu/sites/default/files/pdf-sample.pdf"
width="100%" height="100%"/>
</s:WindowedApplication>
{quote}

  was:
I'm trying to load a PDF document in my AIR application using the MX:HTML component. When
a popup opens, the HTML component's default behaviour is to hide the content when a popup
opens and reappear when the popup disappears. This is what I would expect.

However if the HTML content is reloaded while the popup is open, the HTML content is reappearing
automatically and sitting on top of the popup.

I can replicate this behaviour using Flex SDK 4.6, 4.11, 4.12 and 4.12.1.

Is this a normal behaviour? Is there a way to stop this from happening?

Here is some working sample code:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       creationComplete="maximize()">
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>
    <fx:Script>
        <![CDATA[
            import flash.utils.setTimeout;
            
            import mx.managers.PopUpManager;
            
            import spark.components.TitleWindow;
            
            private function openPopUp():void
            {
                var popup:TitleWindow = new TitleWindow();
                PopUpManager.addPopUp(popup, this, true);
                PopUpManager.centerPopUp(popup);
                
                setTimeout(function():void{html.reload()}, 1000);
            }
        ]]>
    </fx:Script>
    <s:Button click="openPopUp()" label="CLICK"/>
    <mx:HTML id="html" location="http://www.energy.umich.edu/sites/default/files/pdf-sample.pdf"
width="100%" height="100%"/>
</s:WindowedApplication>


> HTML content sits on top of Flex application
> --------------------------------------------
>
>                 Key: FLEX-34351
>                 URL: https://issues.apache.org/jira/browse/FLEX-34351
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: HTML Control
>    Affects Versions: Adobe Flex SDK 4.6 (Release), Apache Flex 4.11.0, Apache Flex 4.12.0,
Apache Flex 4.12.1
>            Reporter: David Reade
>            Priority: Blocker
>
> I'm trying to load a PDF document in my AIR application using the MX:HTML component.
When a popup opens, the HTML component's default behaviour is to hide the content when a popup
opens and reappear when the popup disappears. This is what I would expect.
> However if the HTML content is reloaded while the popup is open, the HTML content is
reappearing automatically and sitting on top of the popup.
> I can replicate this behaviour using Flex SDK 4.6, 4.11, 4.12 and 4.12.1.
> Is this a normal behaviour? Is there a way to stop this from happening?
> Here is some working sample code:
> {quote}
> <?xml version="1.0" encoding="utf-8"?>
> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
>                        xmlns:s="library://ns.adobe.com/flex/spark" 
>                        xmlns:mx="library://ns.adobe.com/flex/mx"
>                        creationComplete="maximize()">
>     <s:layout>
>         <s:VerticalLayout/>
>     </s:layout>
>     <fx:Script>
>         <![CDATA[
>             import flash.utils.setTimeout;
>             
>             import mx.managers.PopUpManager;
>             
>             import spark.components.TitleWindow;
>             
>             private function openPopUp():void
>             {
>                 var popup:TitleWindow = new TitleWindow();
>                 PopUpManager.addPopUp(popup, this, true);
>                 PopUpManager.centerPopUp(popup);
>                 
>                 setTimeout(function():void{html.reload()}, 1000);
>             }
>         ]]>
>     </fx:Script>
>     <s:Button click="openPopUp()" label="CLICK"/>
>     <mx:HTML id="html" location="http://www.energy.umich.edu/sites/default/files/pdf-sample.pdf"
width="100%" height="100%"/>
> </s:WindowedApplication>
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message