Browse Source

Avoided NSViewComponent calling removeFromSuperview when re-parenting a child NSView.

tags/2021-05-28
jules 11 years ago
parent
commit
bbd2262945
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm

+ 4
- 1
modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm View File

@@ -142,7 +142,6 @@ public:
if (currentPeer != peer)
{
removeFromParent();
currentPeer = peer;
if (peer != nullptr)
@@ -151,6 +150,10 @@ public:
[peerView addSubview: view];
componentMovedOrResized (false, false);
}
else
{
removeFromParent();
}
}
[view setHidden: ! owner.isShowing()];


Loading…
Cancel
Save