Skip to main content

Bug Tracker

Side navigation

#5272 closed feature (worksforme)

Opened September 19, 2009 02:09PM UTC

Closed November 19, 2010 01:33AM UTC

animate height to "auto"

Reported by: Eliiass Owned by:
Priority: major Milestone: 1.4
Component: effects Version: 1.3.2
Keywords: animate height auto Cc:
Blocked by: Blocking:
Description

I'd love to be able to animate the height of an element to "auto", like

$("#id").animate({height:"auto"});

Attachments (0)
Change History (2)

Changed September 19, 2009 02:32PM UTC by Eliiass comment:1

I forgot to mention that this can be reached with these lines:

var height1 = $("#id").height();

$("#id").height("auto");

var height2 = $("#id").height();

$("#id").height(height1);

$("#id").animate({height:height2},function(){$("#id").height("auto");});

But I dont like this solution because it bloats my code. Maybe you can include this in jQuery because it might be important for other people too.

Changed November 19, 2010 01:33AM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

You can write a plugin to avoid duplicating those lines.