View Full Version : Sliding In an asynchronously updated div doesn't seem to work smoothly

28 Feb 2011, 3:25 AM
I've got a page with an empty div at the start - when you press a button it asynchronously updates from the server. At this point the div is still blank until I use Element.show - I can use Element.show(true) and that animates fading-in properly, but if I try

Element.slideIn('t', {
easing: 'easeOut',
duration: .5
});it doesn't animate properly. It slides in what seems to be one line, and then it jumps to the bottom. Do I need to force it into recalculating its size or something? Thanks