Nested queue() proccess

Nested queue() proccess

Hi there!

So here it's my question.
I have some HTLM elements wich I want to animate, but instead of using .animate() method I am using other ones, as .hide()/.show() or .css()

So the problem cames that I have to nest this actions in order to re-calculate container's bounds, as for example, the height property.

I have something like this:
  1. obj.hide('slow').queue(function(){
  2.       objInner_1.hide('slow').queue(function(){
  3.             objInner_2.show('slow');
  4.             $(this).dequeue(); //[1]
  5.       });
  6. }).queue(function(){
  7.       calculateHeight(parent);
  8.       $(this).dequeue();
  9. });
Ok.
This doesn't work, so far.
Because the call to .dequeue() method [1] doesn't break outers queues, so whenever I run this code it never hits the 'calculateHeight()' function.

Is there any way to fix this?

Thanks in advance for your help.


- I didn't know it was imposible, so far I wouldn't had achieved it. -