Hi guys!
My jQuery slideToggle() experiment
Can anybody tell me why my boxes "jump" when i open them? The first half they slide, the rest they "jump"??
Thanks, Johannes
Hi guys!
My jQuery slideToggle() experiment
Can anybody tell me why my boxes "jump" when i open them? The first half they slide, the rest they "jump"??
Thanks, Johannes
I found this problem in many occasions in which I was animating just the height with slideToggle
but not the margin/padding.
So, something like this might solve it:
$("#thediv").slideToggle().animate({"margin-bottom": "toggle"});
The quickest fix in your case:
.message_container { width: 361px; }
I'm not sure exactly why, but not giving the container a fixed width when containing a <p>
causes issues, give it one and the jumpyness goes away.
Its a simple fix. Add this CSS rule to your stylesheet (Tested in Firebug to work, and from my past experience with this problem, this is the fix):
ol.message_list { position: relative }
It is a CSS bug, not a jQuery bug per se.