This is because the animation is applying the height directly to the
element in the animation.
Try this,
Effect.SlideUp(element, {
afterFinish : function(fx){
fx.element.setStyle({height : "auto"});
}
})
--
Matt Foster
Ajax Engineer
Nth Penguin, LLC
http://www.nthpenguin.com
On Jun 19, 3:58 pm, PAOEGONVG <marcus1...-FFYn/CNdgSA@public.gmane.org>
wrote:> I''m using prototype to update the contents of a div, and then it
> slides down after the previous div slides up.
> The problem is that the height it uses to do the animation doesn''t
> seem to get updated to match the new content.
> I tried using getHeight and SetStyle to do it. But even getHeight
> doesn''t have the height either.
> I guess cause its not being displayed.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---