Problem when adding tabs.

Problem when adding tabs.

Hi,

I have a script which sorts the tabs programmatically by removing the tabs and adding them back in in the desired order. This script used to work fine before upgrading to 1.8.

The script still does what it's supposed to do, but extra spacing is added at the top of the currently selected tab after each tab is added. After the script has executed, the currently selected tab looks as expected if I click on a different tab and back again. I've noticed this behaviour in both IE6 and FF 3.6.

The tabs being removed/added are ajax tabs, the one being affected is a 'local' tab.

Questions:
1) Is this a known bug in 1.8?
2) Is there a better way of sorting the tabs programmatically?

This script shows the problem in action... http://jsbin.com/eluku3

Regards,