You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Andrew Alderson (JIRA)" <ji...@apache.org> on 2014/07/30 23:40:39 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14080021#comment-14080021 ] 

Andrew Alderson commented on FLEX-34351:
----------------------------------------

This is not a bug. As per the documentation this is the expected behaviour.

You are using Acrobat Reader to render the pdf in AIR and the documentation states that the reader will display over all other content. When the page is reloaded Reader is also reloaded and forced back to the top. This is also the behaviour in all browsers.

The way to stop this is to not use Acrobat to render the pdf. Convert it to html or use a javascript or actionscript library to render the pdf.

> 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.2#6252)