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"});
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.