Properly calculate tab width when some of them are pinned