Browse Source

macOS: Always resize embedded NSView asynchronously in AutoResizingNSViewComponent to fix a bug with some AU plug-ins reporting the incorrect size

tags/2021-05-28
ed 6 years ago
parent
commit
1bea6b517d
1 changed files with 2 additions and 17 deletions
  1. +2
    -17
      modules/juce_audio_processors/juce_audio_processors.cpp

+ 2
- 17
modules/juce_audio_processors/juce_audio_processors.cpp View File

@@ -93,23 +93,8 @@ static inline bool arrayContainsPlugin (const OwnedArray<PluginDescription>& lis
struct AutoResizingNSViewComponent : public ViewComponentBaseClass,
private AsyncUpdater
{
void childBoundsChanged (Component*) override
{
if (recursive)
{
triggerAsyncUpdate();
}
else
{
recursive = true;
resizeToFitView();
recursive = false;
}
}
void handleAsyncUpdate() override { resizeToFitView(); }
bool recursive = false;
void childBoundsChanged (Component*) override { triggerAsyncUpdate(); }
void handleAsyncUpdate() override { resizeToFitView(); }
};
//==============================================================================


Loading…
Cancel
Save