Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit d86e4a9

Browse files
author
Michael Ehrmann
committed
[FIX] correctly assign PSMTabState masks and relayout TabView if tab gets selected.
1 parent f5cb351 commit d86e4a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/PSMTabBarControl.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ - (void)tabView:(NSTabView *)aTabView didSelectTabViewItem:(NSTabViewItem *)tabV
20032003
[self update];
20042004
} else {
20052005
[_controller setSelectedCell:thisCell];
2006-
[self setNeedsDisplay:YES];
2006+
[self update];
20072007
}
20082008
}
20092009

Source/PSMTabBarController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ - (void)_setupCells:(NSArray *)cells withWidths:(NSArray *)widths {
517517
tabState |= PSMTab_PositionLeftMask;
518518
} else if(i == [widths count] - 1) {
519519
tabState |= PSMTab_PositionRightMask;
520+
} else {
521+
tabState |= PSMTab_PositionMiddleMask;
520522
}
521523

522524
[cell setTabState:tabState];

0 commit comments

Comments
 (0)