This is probably truly basic, but I can't figure it out myself. The problematic code calculates and manipulates objects positioning (using offsetLeft and offsetTop), that runs on $(document).ready().
It runs as a module which is part of the Drupal CMS, so I don't have control over some of the components. Usually it works well, but when used inside a div that is not displayed by default, rather by slideDown() function (it is called 'collapsed' in Drupal) - all the positioning calculations fail. I would like to run these calculations when the slideDown event completes. But I don't know how can I detect slideDown completing, WITHOUT cooperation from the caller of slideDown... Thanks for your help.. --yuval