Tom Gregory wrote: > I have a few thoughts for you. > > 1. BlindUp/BlindDown accept the options scaleFrom and scaleTo, which > are floats from 0 to 100, representing height as a percentage. You > could use that. > > 2. The trouble is, you won't know how big your second div is going to > be until you display it.
I've been thinking of this too since it would be a really nice effect to have. I haven't done any work on it, but here's what I've thought of so far: The main problem is you don't know how high the new content is actually going to be. So create a div that sits outside of the normal document tree (absolute positioning) that has visibility set to hidden (not display:none). Request the new content and put it inside this hidden div. Make sure the hidden div has the same width as the destination div and then grab the height. This should be the new height of the destination div. Now, fix the height of the destination div to be it's current height (so it doesn't auto-expand when you add the new content). Take the innerHTML of the hidden div and assign it to the innerHTML of the destination div. Then use BlindDown with the scaleFrom option. Very convoluted, but should be the basics of something that could work. Of course I haven't actually tried any of this. -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
