Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 3 years ago by dmethvin
- Status changed from new to closed
- Resolution set to worksforme
comment:2 Changed 23 months 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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