Resize/Tabs: Fixed resize width/height detection and its effect on tabs