Side navigation
#5148 closed bug (invalid)
Opened August 31, 2009 05:30PM UTC
Closed November 19, 2010 06:02AM UTC
animate({height: xx}) computed incorrectly height before animation when element have a padding
Reported by: | TNT | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | dimensions | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I decided to try out (from full height -> to height smaller than original) animate({height: '1px'}) but found that computed incorrectly height before animation.
my element have 'padding: 5px;'.
test case can found at http://tnt-soft.net/bug/tooltip2.htm
first element don't have any padding, second element have padding: 5px.
I use jquery-nightly v1.3.3pre Revision: 6300
Attachments (0)
Change History (2)
Changed September 01, 2009 06:20PM UTC by comment:1
Changed November 19, 2010 06:02AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
Thanks for the report, but I don’t see any bug here. jQuery correctly animates the height of the element. According to the w3c box model, padding is separate from content height. If you want to hide it completely, please use slideUp
.
Now test case is more informative about height of elements and it is use most fresh version of jquery-nightly (revision 6529), but bug is still exists.