#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: |
Description
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() { $(myDiv).css("overflow","visible"); }});
Change History (4)
comment:1 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
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
This works great for me:
$(myDiv).animate( { height: newHeight}, { duration: 500, queue: false, easing: 'easeOutExpo', step: function() { $(myDiv).css("overflow","visible"); }, complete: function() { $(myDiv).css("overflow","visible"); } } );
Note: See
TracTickets for help on using
tickets.
It's needed so that scroll bars won't appear.