diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-11-15 19:12:48 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-11-15 19:12:48 +0100 |
commit | 8cf280dbde02836f9cf44e10484c850f0c159cdb (patch) | |
tree | 0517ccf9c0cf09ae265897e0d9f1ec95d71c6644 | |
parent | 7d14ca9cc2449448ab19d8f0daf8c8a66e4cefa7 (diff) |
Fix wierd misplacement problem on OSX UI.
-rw-r--r-- | plugingui/nativewindow_cocoa.mm | 8 |
1 files changed, 4 insertions, 4 deletions
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]; } } |