Bug Tracker

Opened 14 years ago

Closed 12 years ago

#5272 closed feature (worksforme)

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:


I'd love to be able to animate the height of an element to "auto", like $("#id").animate({height:"auto"});

Change History (2)

comment:1 in reply to:  description Changed 14 years ago by Eliiass

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.

comment:2 Changed 12 years ago by dmethvin

Resolution: worksforme
Status: newclosed

You can write a plugin to avoid duplicating those lines.

Note: See TracTickets for help on using tickets.