Improve size computation of newly docked tabs