I've got a simple div which I use to display some data on my page. It goes something like this:
<div class="entryDiv" id="entryDiv" style="display: none">
</div>
<%= draggable_element "entryDiv", :revert => null %>
Now, I have a list of contacts that use an ajax updater to dump the data for a contact into the div, and then call Element.show('entryDiv'). In the entry div, I have a target that calls Element.hide('entryDiv'), to "close" the display. Now, when I load the page and click on a contact, it works fine, loads the data and shows up, is draggable, works just like I wanted it to. I can click on other contacts and see the ajax is working fine, it replaces the data. However, when I close the div and re-open it, the positioning of it get's corrupted, it often shows up far down the page, far to the right. If I was better with javascript, I'd try to find the bug myself, but alas I'm not =(