Bug Tracker

Opened 9 years ago

Closed 9 years ago

#12416 closed bug (fixed)

.slideUp() not shrinking padding-bottom

Reported by: anonymous Owned by:
Priority: high Milestone: 1.8.1
Component: effects Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:


When using .slideUp() in v1.8.0, the bottom padding does not shrink as expected. The padding can be viewed in the inspector as the element v..e...r...y slowly slides up. See this fiddle: http://jsfiddle.net/9wPad/1/

If you change the jQuery version to 1.7.2 it works correctly. Able to repro in Chrome and FF latest, at least. I am using Windows 7.

I posted a question on StackOverflow here: http://stackoverflow.com/questions/12170889/jquery-slideup-not-shrinking-padding-bottom-value

Change History (5)

comment:1 Changed 9 years ago by edelman.jason@…

Not sure why it filed as anonymous, but I filed this.

comment:2 Changed 9 years ago by Ult Combo

+1, a minimum fiddle shows that the paddingBottom is simply removed at the end of the animation and not animated as it should with the rest of the height.

A temporary workaround is to pass the borderTopWidth, paddingTop, height, paddingBottom and borderBottomWidth to .animate(). fiddle

comment:3 Changed 9 years ago by dmethvin

Component: unfiledeffects
Priority: undecidedhigh
Status: newopen

comment:4 Changed 9 years ago by Ult Combo

It seems to be fixed in jQuery 1.8.1 fiddle.

comment:5 Changed 9 years ago by mikesherov

Milestone: None1.8.1
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.