adjust tab button layout a bit to avoid overlaps
This commit is contained in:
parent
5d8f9d8b13
commit
8abcc566dd
Binary file not shown.
|
@ -800,11 +800,6 @@ typedef enum
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//change selected tab item
|
|
||||||
if (oldTabTag != INVALID)
|
|
||||||
[(InfoTabButtonCell *)[fTabMatrix cellWithTag: oldTabTag] setSelectedTab: NO];
|
|
||||||
[(InfoTabButtonCell *)[fTabMatrix selectedCell] setSelectedTab: YES];
|
|
||||||
|
|
||||||
[[NSUserDefaults standardUserDefaults] setObject: identifier forKey: @"InspectorSelected"];
|
[[NSUserDefaults standardUserDefaults] setObject: identifier forKey: @"InspectorSelected"];
|
||||||
|
|
||||||
NSWindow * window = [self window];
|
NSWindow * window = [self window];
|
||||||
|
@ -879,6 +874,11 @@ typedef enum
|
||||||
[window setFrame: windowRect display: YES animate: oldTabTag != INVALID];
|
[window setFrame: windowRect display: YES animate: oldTabTag != INVALID];
|
||||||
[[window contentView] addSubview: view];
|
[[window contentView] addSubview: view];
|
||||||
[view setHidden: NO];
|
[view setHidden: NO];
|
||||||
|
|
||||||
|
//change selected tab item
|
||||||
|
if (oldTabTag != INVALID)
|
||||||
|
[(InfoTabButtonCell *)[fTabMatrix cellWithTag: oldTabTag] setSelectedTab: NO];
|
||||||
|
[(InfoTabButtonCell *)[fTabMatrix selectedCell] setSelectedTab: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setNextTab
|
- (void) setNextTab
|
||||||
|
|
Loading…
Reference in New Issue