mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[macos] refactoring
This commit is contained in:
@ -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];
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user