|
|
@@ -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(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|