Ticket #4415 (closed bug: duplicate)
fix: Using min-height causes breaks in slide animations
| Reported by: | dantman | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | effects | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
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.
Attachments
Change History
Changed 4 years ago by dantman
-
attachment
fix-minheight.patch
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Patchfile for rev6300 to fix the bug