You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2016/11/03 01:04:58 UTC

[jira] [Resolved] (FLEX-34351) HTML content sits on top of Flex application

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

Justin Mclean resolved FLEX-34351.
----------------------------------
    Resolution: Not A Problem

> 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:
> {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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)