Opened 11 years ago
Closed 9 years ago
#10568 closed bug (fixed)
Animate width of hidden inline element
Reported by: | benoit | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | effects | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Versions affected: 1.6 - 1.6.4
Browsers: Firefox 7.0.1, Chromium 17.0.914.0, IE 9/8, Opera 11.52,
Operating system: Windows 7 SP1 and Windows XP SP3,
http://jsfiddle.net/jzjam/
When calling animate('width', 'show') on hidden inline element it shows up immediately instead of animating the width. When hiding it works as expected.
I pinpointed it to line 8243 non-minimized jQuery source v.1.6.4:
jQuery.css( this, "display" ) === "inline"
It checks whether "display" style equals "inline" but it gets "none".
I don't know what should be the proper way to fix it or even if it should be fixed, but I thought I should report it.
Change History (2)
comment:1 Changed 11 years ago by
Component: | unfiled → effects |
---|---|
Milestone: | None → 1.next |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
This was fixed in https://github.com/jquery/jquery/commit/73fe17299a840a8a7f3ffffcac15e32a88bd3d66 for #14344. Forgot about this ticket until afterwards.
Confirmed. http://jsfiddle.net/timmywil/jzjam/1/