Bug Tracker

Modify

Ticket #4415 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

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

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

Change History

Changed 4 years ago by dantman

Patchfile for rev6300 to fix the bug

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

This does look like a dup of #1004.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.