From 8cf280dbde02836f9cf44e10484c850f0c159cdb Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 15 Nov 2019 19:12:48 +0100 Subject: Fix wierd misplacement problem on OSX UI. --- plugingui/nativewindow_cocoa.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui') diff --git a/plugingui/nativewindow_cocoa.mm b/plugingui/nativewindow_cocoa.mm index 79a2262..90b5c70 100644 --- a/plugingui/nativewindow_cocoa.mm +++ b/plugingui/nativewindow_cocoa.mm @@ -718,13 +718,13 @@ void NativeWindowCocoa::updateLayerOffset() { if(native_window) { - auto r1 = [priv->parent_view frame]; - //auto r2 = [priv->view frame]; + //auto r1 = [priv->parent_view frame]; + auto r2 = [priv->view frame]; CATransform3D t = [[priv->view layer] transform]; - if(t.m42 != -r1.origin.y) + if(t.m42 != -r2.origin.y) { - t.m42 = -r1.origin.y; // y + t.m42 = -r2.origin.y; // y [[priv->view layer] setTransform:t]; } } -- cgit v1.2.3