check size calc of tabs #271

When the tab is resized, it first becomes small and then large again. This causes the display to jump.

tab 1
tab 2
tab 11
tab 12
tab 13
tab 14
tab 15
tab 4
tab 5