aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-10-06 11:33:36 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-06 18:12:36 +0000
commit1fbb07a5c0e0b1c4dd3ca7172908d637e4098f4b (patch)
tree848e3389eefcf7098765022c50afe8c3fa83da33
parentde281c98bab46022386bd5ae7ec63c104ba4fec3 (diff)
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>
-rw-r--r--src/views/mac/SkNSView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm
index 94a3b5fa4e..9e25f2e7b4 100644
--- a/src/views/mac/SkNSView.mm
+++ b/src/views/mac/SkNSView.mm
@@ -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];
}