[macos] refactoring

This commit is contained in:
maxkadushkin
2024-02-21 16:12:03 +03:00
parent 310864b1d3
commit cb77c558b7
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ static NSUInteger const kASTabViewCloseButtonSize = 12;
[self setBordered:NO];
[self setCell:tabCell];
[self setState:NSControlStateValueOn];
[self.cell setImagePosition:NSImageLeft];
// [self.cell setImagePosition:NSImageLeft];
[self.cell setBordered:NO];
self.close = [[ASCButton alloc] initWithFrame:CGRectZero];

View File

@ -306,7 +306,7 @@
}
if (self.closeButton) {
rightOffset = CGRectGetHeight(self.closeButton.frame) * 1.5;
rightOffset = CGRectGetHeight(self.closeButton.frame) * 1.5 + 2;
}
if (CGRectGetWidth(frame) - leftOffset - rightOffset > 15) {