Bug Tracker

Opened 15 years ago

Closed 13 years ago

Last modified 11 years ago

#2648 closed bug (worksforme)

.animate(height) incorrectly sets overflow hidden on animated div

Reported by: ericw Owned by:
Priority: minor Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


i had to create a callback like so to circumvent jquery.animate setting overflow to 'hidden' for height-animated divs:

$(myDiv).animate({ height: newHeight},{ duration: 500, queue: false, easing: 'easeOutExpo', complete: function() {

Change History (4)

comment:1 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

It's needed so that scroll bars won't appear.

comment:2 Changed 12 years ago by willpower232

Sorry this is a bump but you can override this behaviour by applying "overflow: visible !important" to the element you are animating.

see http://old.nabble.com/Automatic-switching-to-overflow-hidden-during-animation-td22884304s27240.html

comment:3 Changed 11 years ago by [email protected]

This works great for me:

   { height: newHeight},
   { duration: 500, 
     queue: false, 
     easing: 'easeOutExpo', 

     step: function() {

     complete: function() {

comment:4 Changed 11 years ago by sindresorhus

#11399 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.