Thank you for the sample.
I think instead of ... = $(document).height; the better working for me solution is ... =$(window).height;
But it worked only in your sample and not in my environment.
The problem in my case is that i add the tabitems dynamically.
I have attached a sample based on your sample with a button to add a new tab item with the additem function.
If you click the button the tabitem will be added correct, but if i click the new tabitem i think i have two problems.
First problem: (Only in sample environment because of position:absolute at tab parent)
The tab moves in the next line but it would be enough space to show the tab in the current line. If i select an other tabitem all tabitems will be shown correct in one line.
Second problem:
The new tabitem content doesn't fill the tab parent content. The initial inserted tabitems work as expected.
Is it possible to refresh the tabs to get a correct behavior?
Regards
Michael
Attachment:
dynTabSample_4bdfc601.zip