Bug Tracker

Modify

Ticket #4608 (closed bug: invalid)

Opened 4 years ago

Last modified 14 months ago

Overflow left "visible" vs return to "auto" after animate on Safari on some MacBooks

Reported by: gftn Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: animate overflow Safari MacBook Cc:
Blocking: Blocked by:

Description

On some (but not all) Macs running one of our apps under Safari (and not on other browsers or on Windows), after running an animate to change the height of a <div> that is a scrolling list (i.e., with overflow=auto) with a statement like:

$("#xxx").animate ({height:newHgt},XXXmsecs);

the list (quite repeatably) loses its scroll bar and spills on down the page. If you query the status of the overflow attribute after the event with:

$("#xxx").css("overflow")

the result is "visible". On other browsers/platforms, it's "auto" as expected.

Note that there are two other animates running along with this one (we're basically opening up a space for an image, making one <div> completely disappear and shortening the <div> containing list in question.)

If we explicitly reset the overflow to auto with:

$("#xxx").css("overflow","auto");

in the post-animate callback function (running off one of the other animates), it fixes the problem.

Change History

comment:1 follow-up: ↓ 2 Changed 4 years ago by dmethvin

Since the problem is repeatable, please provide a simple test case. It sounds like the animates may be creating a race condition that only happens to occur in Safari, but the test case would help prove that.

comment:2 in reply to: ↑ 1 Changed 4 years ago by gftn

Replying to dmethvin:

Since the problem is repeatable...

We have determined that the problem is only with older versions of Safari: 3.2.2, 3.2.3 (maybe others but not in the 4.0 beta) on either Windows or Mac OS X. Your suggestion about race conditions was helpful and led to other fixes in the code. Will attempt to follow up with a small test case.

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

No test case and only for older Safari, so I'm closing this.

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.