api.jquery.com icon indicating copy to clipboard operation
api.jquery.com copied to clipboard

Slide transitions can misjudge final dimensions - workaround should be documented

Open clinkingdog opened this issue 12 years ago • 0 comments

Sometimes slideDown, slideUp and slideToggle events can misjudge the final dimensions of the page, and hence slide the element too far or not far enough - leading to a "jump" into the correct position at the end of the slide transition.

This can be worked around by an explicit height or width specification on the element in question, and it would be helpful if that workaround was documented on these methods.

Some references: http://www.bennadel.com/blog/2263-Use-jQuery-s-SlideDown-With-Fixed-Width-Elements-To-Prevent-Jumping.htm (note that the width doesn't actually need to be fixed - any specified width will probably work; the explanation is helpful though) http://forum.jquery.com/topic/slidedown-goes-to-far-then-jumps-back

clinkingdog avatar May 23 '13 15:05 clinkingdog