Skip to content

Commit

Permalink
Use bounds instead of frame to properly support multiple displays
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Aug 25, 2020
1 parent 22137ee commit ffe6998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SadMac/SadMacView.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (instancetype)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
[textField setUsesSingleLineMode: NO];
[self addSubview:textField];
} else {
self.sceneView = [[MySKView alloc] initWithFrame: self.frame];
self.sceneView = [[MySKView alloc] initWithFrame: self.bounds];
self.sceneView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
[self addSubview: self.sceneView];
self.scene = [[SadMacScene alloc] initWithSize: self.frame.size isPreview: isPreview];
Expand Down

0 comments on commit ffe6998

Please sign in to comment.