horseweapon
unread,Jul 1, 2008, 12:55:53 AM7/1/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MooTools Users
Well it's pretty much the default behavior, of any html element. Then,
if your container has a fixed height set in pixel, you can set its
height back to 'auto', right before you update the content. Or, if you
really want to keep fixed heights all the time, there are wrapper
system: you have the outer div, the wrapper, with a fixed height, and
a inner div, the content container, with an auto height. When you
receive your ajax content, you replace the inner div text with it,
then you get its height with getSize, then you use this value to set
the wrapper fixed height. Why doing this while the first method with
an 'auto' height did the job? you can use fancy animation for update:
before emptying the inner div, you fade it out, you set its new
content, get the new hiehgt, use this height to grow the wrapper with
an animation, and when you make the inner div fade in.