Ticket #4415 (closed bug: duplicate)
fix: Using min-height causes breaks in slide animations
|Reported by:||dantman||Owned by:|
If you set min-height onto an element it causes breaks in slide animations. Basically because the min-height definition is meant to limit the smallest height an element can be at when jQuery tries to animate the height to a value smaller than the min-height the browser holds the element at that min-height instead of continuing the shrinking up until the animation finishes and closes. Likewise when showing something the element immediately jerks out to the min-height then continues from there after a delay.
The fix is to treat min-height similar to display or rather overflow and set it to 0 while animating and then reset when finished.
I have uploaded a test case of the issue, and a version with the fix: Issue: http://test.4query.org/slidefix/min-height-issue.html Fixed: http://test.4query.org/slidefix/min-height-fixed.html
I saw bug #1004 but it had no working test case and was questionable if it was the same bug or not.