I'm aware that when animating the dimensions of a
overflow:hidden is added to the element style in order to don't show scrollbars.
overflow property is removed from the element style when the animation is complete. However, that doesn't happen when I call the
Normal behavior - Without
.stop(), scrollbars are hidden while animating and restored to default after animation.
Test case - trigger the
mouseleave while it is animating to invoke the
.stop() method, the
overflow:hidden stays in the element style and scrollbars are gone for good.
Temporary workaround: Set
overflow:auto !important; in the CSS when the
div is supposed to have scrollbars.
Proposed patch: remove the added
overflow:hidden from the element style when
.stop() is invoked.
I'd suggest not adding the
overflow property if the element already has one, but in that case it could break back-compat. Therefore simply restoring the
.stop() is called as if the animation had completed should suffice.