rldjrsksl / flex-iframe

Automatically exported from code.google.com/p/flex-iframe
0 stars 0 forks source link

IFrame doesn't close when component is removed from displaylist when window shows scrollbars #53

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. go to http://sagada.tv/
2. Set the window size to below 877px X 714px.
3. open the iframe: click on "Want Vmail on your site?"
4. when browser window size is below 877px X 714px  - the opened IFrame
will not be closed by the flash component when clicking on the close button.
5. try the same, now with windows size larger than 877px X 714px -
everything work as expected.

What is the expected output? What do you see instead?
You expect the iframe to be closed when the component is removed from the
displaylist. 
but when there are scrollbars, the iframe window doesn't close.

What version of Flex-IFrame are you using? On what operating system and
which navigator (specify the version too)?
latest version.
all operating systems and browsers.

Please provide any additional information below, and a sample Flex 3
project reproducing the issue if possible.

Original issue reported on code.google.com by Z.Ba...@gmail.com on 30 Nov 2009 at 11:46

GoogleCodeExporter commented 8 years ago
I have tried this with Chrome and IE7 and it does not close the iframe at any 
point. 
This is not surprising since the iframe does not work within pop-ups such as 
your 
register dialog (at least not at the moment). None of the examples show this 
type of 
implementation. I am going to re-label this as a feature request since it is 
not a bug. 

Original comment by alistair.rutherford on 2 Dec 2009 at 6:36

GoogleCodeExporter commented 8 years ago
Why would you say it doesn't work?
Tested on all major browsers - IE, Chrome and FF - all are working well, except 
for
when a scroll-bar appears.

I would gladly help fix or enhance this and contribute a patch - could you 
explain
why is this different then the demos?

Thanks!

Original comment by Z.Ba...@gmail.com on 2 Dec 2009 at 9:25

GoogleCodeExporter commented 8 years ago
For short, this is the following feature request: "Remove the iframe when the 
component is removed from the display list".

Original comment by Julien.N...@gmail.com on 14 May 2010 at 3:57

GoogleCodeExporter commented 8 years ago
This may technically be a feature request, but it seems like a pretty serious 
failing to not remove the IFrame component if its parent is removed. The old 
version of the Flex IFrame seemed to do this properly, but that had other 
issues, so I upgraded to this one to fix them (which it seems to), but now it 
doesn't go away if I close the component BEFORE it's fully loaded.

For the record, if you let the page load and then close it, it goes away, but 
if you close it while it's loading, it only goes away until loading is 
complete, at which point it appears again. Any ideas of how I could at least 
hack around this for now?

Original comment by piemaste...@gmail.com on 8 Jul 2010 at 6:52

GoogleCodeExporter commented 8 years ago
Sorry for all the posts, but if you comment out the invalidateDisplayList() 
call in IFrame.handleFrameLoad(), it won't show up if you've closed it before 
it loads. Possibly not the best way to go about it, but it's good enough for me.

Original comment by piemaste...@gmail.com on 8 Jul 2010 at 6:58