Skip to main content

Bug Tracker

Side navigation

#1004 closed bug (worksforme)

Opened February 28, 2007 02:02AM UTC

Closed November 17, 2007 09:19PM UTC

Last modified November 22, 2010 11:52AM UTC

min-height causes abnormal slide effect

Reported by: Yansky Owned by:
Priority: minor Milestone: 1.1.3
Component: effects Version: 1.1.2
Keywords: css slide fx Cc:
Blocked by: Blocking:
Description

When you set a min-height for a div in your stylesheet, the slide effects display the div all at once rather than in a smooth motion.

Example: http://34r34r.dreamhosters.com/newdesign/new-slide-test.html

Attachments (0)
Change History (7)

Changed February 28, 2007 09:44PM UTC by john comment:1

That seems valid to me. Considering that a slideDown animates the height of an element. It seems like if you wanted to still animate something that stays at a particular minimum height you'd have to do what you posted to the wiki:

http://docs.jquery.com/Tutorials:Getting_Around_The_Minimum_Height_Glitch

I haven't tested this, but maybe something like:

$(...).animate({ minHeight: "show", height: "show" }, "slow");

might work

Changed March 01, 2007 04:59AM UTC by Yansky comment:2

Replying to [comment:1 john]:

Yep fair enough. I was 50/50 as to whether I should open this ticket as a bug or as a feature request. :)

Changed November 17, 2007 09:19PM UTC by davidserduke comment:3

description: When you set a '''min-height''' for a div in your stylesheet, the [http://docs.jquery.com/Effects#slideDown.28_speed.2C_callback_.29 slide effects] display the div all at once rather than in a smooth motion.\ \ Example: http://34r34r.dreamhosters.com/newdesign/new-slide-test.htmlWhen you set a '''min-height''' for a div in your stylesheet, the [http://docs.jquery.com/Effects#slideDown.28_speed.2C_callback_.29 slide effects] display the div all at once rather than in a smooth motion. \ \ Example: http://34r34r.dreamhosters.com/newdesign/new-slide-test.html
need: → Review
resolution: → worksforme
status: newclosed

The example no longer works and from the discussion it sounds like a questionable bug. Closing for now. Feel free to reopen it with a new test case and additional information if necessary.

Changed May 16, 2009 03:14AM UTC by dmethvin comment:4

Dup #4415 has a patch, although I can't figure why you'd want to apply a min-height to divs and use this effect.

Changed May 16, 2009 08:13AM UTC by dantman comment:5

Replying to [comment:4 dmethvin]:

Dup #4415 has a patch, although I can't figure why you'd want to apply a min-height to divs and use this effect.

I use it at work. It's an editor, we've got a part of the system ui and custom stuff intertwined that can close, but when it is open we want it to actually show up with a proper size because otherwise users will be unable to use a tool to click on the empty inside in order to select it and put stuff inside.

Changed November 15, 2010 07:44PM UTC by dtetto comment:6

Just a note that this (still extant) bug is re-reported as:

#4415 (which, as dmethvin notes, has a patch), #4623, #5905, and #6618

Just addeed a new comment to #5905 about it since this one has been closed for years; but in the interest of completeness, here's a jsFiddle showing the bug still present in 1.4.4:

http://jsfiddle.net/mLHb9/

Changed November 22, 2010 11:52AM UTC by jitter comment:7

test case with "workaround". It's up to the author to decide whether they want to have min-height fiddled with or not.