Opened 13 years ago
Closed 12 years ago
#5286 closed bug (worksforme)
animate bug
Reported by: | hugenoize | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.4 |
Component: | effects | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (1)
Change History (5)
comment:1 Changed 13 years ago by
Component: | unfilled → fx |
---|---|
need: | Review → Test Case |
Priority: | major → minor |
Changed 13 years ago by
Attachment: | animate_bug_test.zip added |
---|
comment:2 Changed 13 years ago by
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 13 years ago by
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.
comment:4 Changed 12 years ago by
need: | Test Case → Review |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
I'm not seeing a reload with Firefox 3.6.
Can you provide a test case please?