Is there any way to do two (or more) $('element').setStyle changes
atomically? I'm trying to do a Tab control, where one <div> is hidden
as another appears, but I occasionally get flickering when (for a
split second) both <div> elements are visible simultaneously.
My calls are:
-- div1.setStyle({height: div2.getHeight()+'px'});
-- div2.setStyle({height: 0});
For reasons specific to my code, I can't use "display:none" to make it
invisible; I have to use height. But sometimes, right in between these
commands, both div1 & div2 occupy space in the document flow, causing
the page to flicker. If I were simply to reverse the commands, then it
will flicker in the other direction, so that won't help,
unfortunately.
Any help would be greatly appreciated.
Thanks,
Jonathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---