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] [Created] (FLEX-34351) HTML content sits on top of Flex application
Date Mon, 02 Jun 2014 16:23:01 GMT
David Reade created FLEX-34351:

             Summary: 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: Apache Flex 4.12.0, Apache Flex 4.11.0, Adobe Flex SDK 4.6 (Release),
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:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
            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);
                setTimeout(function():void{html.reload()}, 1000);
    <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%"/>

This message was sent by Atlassian JIRA

View raw message