From 1fbb07a5c0e0b1c4dd3ca7172908d637e4098f4b Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Fri, 6 Oct 2017 11:33:36 -0600 Subject: Fix window origin on mac views Bug: skia: Change-Id: I25e4e791760bd1d95a2bfac1a1b5d18d9caa78e8 Reviewed-on: https://skia-review.googlesource.com/56581 Reviewed-by: Yuqian Li Commit-Queue: Chris Dalton --- src/views/mac/SkNSView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- cgit v1.2.3