Browse Source

NSViewComponentPeer: Fix framesize bug introduced in f73f8ee849

v6.1.6
reuk 4 years ago
parent
commit
cc2a563725
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 2
- 2
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -426,8 +426,8 @@ public:
NSRect v = [view convertRect: [view frame] toView: nil]; NSRect v = [view convertRect: [view frame] toView: nil];
NSRect w = [window frame]; NSRect w = [window frame];
b.setTop ((int) v.origin.y);
b.setBottom ((int) (w.size.height - (v.origin.y + v.size.height)));
b.setTop ((int) (w.size.height - (v.origin.y + v.size.height)));
b.setBottom ((int) v.origin.y);
b.setLeft ((int) v.origin.x); b.setLeft ((int) v.origin.x);
b.setRight ((int) (w.size.width - (v.origin.x + v.size.width))); b.setRight ((int) (w.size.width - (v.origin.x + v.size.width)));
} }


Loading…
Cancel
Save