Bug Tracker

Opened 11 years ago

Closed 11 years ago

#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:
Blocked by: Blocking:

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 (1)

fix-minheight.patch (1.1 KB) - added by dantman 11 years ago.
Patchfile for rev6300 to fix the bug

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by dantman

Attachment: fix-minheight.patch added

Patchfile for rev6300 to fix the bug

comment:1 Changed 11 years ago by dmethvin

Resolution: duplicate
Status: newclosed

This does look like a dup of #1004.

Note: See TracTickets for help on using tickets.