Bug Tracker

Modify

Ticket #5286 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

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

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

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

Can you provide a test case please?

Changed 4 years ago by hugenoize

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.

comment:4 Changed 3 years ago by dmethvin

  • need changed from Test Case to Review
  • Status changed from new to closed
  • Resolution set to worksforme

I'm not seeing a reload with Firefox 3.6.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.