Ticket #5286 (closed bug: worksforme)
animate bug
| Reported by: | hugenoize | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.4 |
| Component: | effects | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Sorry for my poor English.
The parent page use an iframe to load a child page. The parent page use javascript to get the child page's height, and set the height of iframe equal to the child page's height.
And I use this code to change height:
$("#myiframe").animate({height:newheight}, 300);
The child has many big images, in order to show child page quickly, the child page call "set iframe height" function many times.
The problem is: if the child page has a Google mp3 player ( a flash ), the flash will be downloaded/reloaded many times. Every time "animate" fires, this flash will be downloaded/reloaded .
To solve this problem, I change the "animate" code to this:
$("#myiframe").height(newheight);
Now the flash will be downloaded only once.
So I think "animate" function has bug.
Attachments
Change History
comment:1 Changed 4 years ago by dmethvin
- need changed from Review to Test Case
- Priority changed from major to minor
- Component changed from unfilled to fx
comment:2 Changed 4 years ago by hugenoize
OK , I made a simple test .
I found maybe it has problem only in Firefox .
I test Firefox 3.5 , Opera 10 , IE 6 and IE 8 , Chrome 4 .
comment:3 Changed 4 years ago by caii
I test it,I think it's the Firefox's bug. when the flash is playing. if it's parentNode's style.overflow change to "hidden", the flash will replay (only in firefox); when execute animate function, will do this if ( opt.overflow != null ) this.style.overflow = "hidden"; so cause the problem as you describle.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Can you provide a test case please?