mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use NSZeroRect for scrubber frame
This commit is contained in:
@@ -503,11 +503,7 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
|
||||
base::scoped_nsobject<NSCustomTouchBarItem> item([[NSClassFromString(
|
||||
@"NSCustomTouchBarItem") alloc] initWithIdentifier:identifier]);
|
||||
|
||||
int width = 320;
|
||||
int height = 30;
|
||||
settings.Get("frameWidth", &width);
|
||||
settings.Get("frameHeight", &height);
|
||||
NSScrubber* scrubber = [[[NSClassFromString(@"NSScrubber") alloc] initWithFrame:NSMakeRect(0, 0, width, height)] autorelease];
|
||||
NSScrubber* scrubber = [[[NSClassFromString(@"NSScrubber") alloc] initWithFrame:NSZeroRect] autorelease];
|
||||
|
||||
[scrubber registerClass:NSClassFromString(@"NSScrubberTextItemView") forItemIdentifier:TextScrubberItemIdentifier];
|
||||
[scrubber registerClass:NSClassFromString(@"NSScrubberImageItemView") forItemIdentifier:ImageScrubberItemIdentifier];
|
||||
|
||||
Reference in New Issue
Block a user