Bug Tracker

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:


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:


Now the flash will be downloaded only once.

So I think "animate" function has bug.

Attachments (1)

animate_bug_test.zip (69.4 KB) - added by hugenoize 13 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 years ago by dmethvin

Component: unfilledfx
need: ReviewTest Case
Priority: majorminor

Can you provide a test case please?

Changed 13 years ago by hugenoize

Attachment: animate_bug_test.zip added

comment:2 Changed 13 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 13 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.

comment:4 Changed 12 years ago by dmethvin

need: Test CaseReview
Resolution: worksforme
Status: newclosed

I'm not seeing a reload with Firefox 3.6.

Note: See TracTickets for help on using tickets.