flex-users / flex-iframe

IFrame component for Flex applications.
github.com/flex-users/flex-iframe
120 stars 63 forks source link

Flex iframe changes size in IE (7) upon reseizing the window #54

Closed nicoulaj closed 13 years ago

nicoulaj commented 13 years ago

Originally filed by dirkvran...@gmail.com on 2009-11-05T14:45:43

The iframe works perfectly in FF but not in IE. 1) As you can see in the attachment issue-001.png is how it should look and how it looks when i open that panel (IE maximized). 2) Then i reseize the screen to something smaler (result: issue-002.png). 3) Afterwards I maximize the screen again (result: issue-003.png).

You see that in the last two screenshots (002 and 003) the position and the size are incorrect. (2) In the second screenshot the iframe is to smal for my panel and the position is to high (it is positioned above my title (Rapports) of my panel). (3) In last screenshot the size of the frame is way to big (it's going of the screen on the right and bottom) and it is positioned way to low and little to the right.

I had this issue with version 1.3.5 and 1.4 on IE (Win XP). Source code of my file: <?xml version="1.0" encoding="utf-8"?> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:panel="com.arc90.flexlib.containers.*" xmlns:flexiframe="http://code.google.com/p/flex-iframe/" width="100%" height="100%">

<mx:Script>
    private var _file:String;
    private var _type:String;

    public var parentView:RapportsView;

    public function get file():String {
        return _file;
    }

    public function set file(value:String):void {
        _file = value;
    }

    public function get type():String {
        return _type;
    }

    public function set type(value:String):void {
        _type = value;
    }
</mx:Script>

<flexiframe:IFrame id="googleIFrame"
                   source="http://www.google.com"
                   width="100%"
                   height="100%"
                   includeInLayout="true"
                   />

/mx:Panel

nicoulaj commented 13 years ago

Updated by Julien.N...@gmail.com on 2009-11-05T15:06:05

I think this is the same as Issue 45. Can you check and confirm me that it only happens when maximizing/restoring, and not manually resizing the window ?

nicoulaj commented 13 years ago

Updated by dirkvran...@gmail.com on 2009-11-05T15:24:03

Not confirmed. The layout also changes when i resize the window (with version 1.3.5).

nicoulaj commented 13 years ago

Updated by dirkvran...@gmail.com on 2009-11-06T08:03:34

I can confirm the problem in Google Chrome!

nicoulaj commented 13 years ago

Updated by Julien.N...@gmail.com on 2009-11-07T11:19:04

Fix committed. The examples have been updated too, please check wether this is fixed...

Original ticket set status to Fixed (we converted to closed)

nicoulaj commented 13 years ago

Updated by dirkvran...@gmail.com on 2009-11-07T13:33:26

Do I have to check out the source and build it myself or have you rebuild the swf?

nicoulaj commented 13 years ago

Updated by Julien.N...@gmail.com on 2009-11-07T13:59:01

No, the examples are here: http://code.google.com/p/flex-iframe/

nicoulaj commented 13 years ago

Updated by dirkvran...@gmail.com on 2009-11-07T14:19:34

Ok I tested the sample http://flex- iframe.googlecode.com/svn/trunk/examples/build/SimpleHtml/SimpleHtml.html on Firefox, IE 7 and Google Chrome and it works. All other samples I've tested on IE7 and seems to work like a charm. Great job back there.

Ooh yeah, in IE7 for a sec I had a problem with this sample: http://flex- iframe.googlecode.com/svn/trunk/examples/build/HTMLTest/HTMLTest.html But I cannot reproduce it so probably I was just a little to quick. Seems to work fine also!

Do you release a new version now?

nicoulaj commented 13 years ago

Updated by Julien.N...@gmail.com on 2009-11-07T15:32:06

Version 1.4.1 includes the fix.

Original ticket set status to Verified (we converted to closed)

nicoulaj commented 13 years ago

Updated by dirkvran...@gmail.com on 2009-11-07T15:35:46

Thx a lot man!