Fix window origin on mac views

Bug: skia:
Change-Id: I25e4e791760bd1d95a2bfac1a1b5d18d9caa78e8
Reviewed-on: https://skia-review.googlesource.com/56581
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2017-10-06 11:33:36 -06:00 committed by Skia Commit-Bot
parent de281c98ba
commit 1fbb07a5c0

View File

@ -53,7 +53,7 @@ BOOL fRedrawRequestPending;
- (void)setNSViewSize:(NSSize)size {
NSWindow* w = [self window];
NSRect f;
NSRect f = w.frame;
f.size = size;
[w setFrame:f display:YES];
}