Skip to main content

Bug Tracker

Side navigation

#7160 closed bug (duplicate)

Opened October 12, 2010 09:07AM UTC

Closed April 17, 2011 08:26PM UTC

Last modified March 13, 2012 03:09PM UTC

only set overflow in $.fn.animate when the default overflow is visible

Reported by: hugodevreugd Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

When you have a hidden div in IE8 with CSS overflow:auto, and a height set in CSS less than the height of the div (so it will get scroll bars when displayed).

Then when you use $("#thediv").show(); jQuery 1.4.3.rc1 displays the div correctly with scroll bars, but when you use $("#thediv").show("slow"); jQuery 1.4.3.rc1 displays the div incorrectly without any scroll bars. In 1.4.2 scroll bars are displayed correctly in both cases.

Other browser like FireFox or Chrome did display the scroll bars in jQuery 1.4.3.rc1 in both cases.

Attachments (0)
Change History (4)

Changed October 13, 2010 01:30AM UTC by snover comment:1

component: unfiledeffects
priority: highlow
status: newopen
summary: Bug in show in jQuery 1.4.3.rc1only set overflow in $.fn.animate when the default overflow is visible
version: 1.4.21.4.3rc

IE8 functions the same as all other modern browsers: the overflow attribute of an element with an animated width or height is set to hidden until after the animation is complete in order to prevent content from overflowing during animations.

In IE6 and IE7, the overflow value remains hidden after the animation is complete because these browsers shrink wrap content in an element with layout. If you are running IE8 in IE7 mode, this is probably what you are experiencing.

We should probably only set overflow when the default overflow is not visible.

Changed November 12, 2010 02:40AM UTC by snover comment:2

milestone: 1.4.3

Resetting milestone to future.

Changed April 17, 2011 08:26PM UTC by timmywil comment:3

milestone: → 1.next
resolution: → duplicate
status: openclosed

Changed April 17, 2011 08:26PM UTC by timmywil comment:4

Duplicate of #3986.