Modify ↓
Ticket #3587 (closed bug: duplicate)
animate({height: 0}) causes incorrect height after animation is completed
| Reported by: | TNT | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | effects | Version: | 1.2.6 |
| Keywords: | animate height | Cc: | TNT, flesler |
| Blocking: | Blocked by: |
Description
when i try this:
$('#div4').css({'width': 100, 'height': 100, 'border': '1px solid red'});
$('#div4').animate({height: 0}, 2000);
-> after animation is completed DIV has grow up to 21px height in IE6, in FF DIV have 0px height
<div id="div4"></div>
Attachments
Change History
comment:3 Changed 5 years ago by TNT
I'm fixing for me with this code:
$('#div3').animate({'height': '1px'}, 2000, function(){$(this).css({'overflow':'hidden', 'height': '0px', 'visibility': 'hidden'});});
and this working fine (for me). :)
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.


can you make a test case ? (html file)