Browse Source

Standalone: Use AudioProcessorEditor::setBoundsConstrained() when setting editor bounds

tags/2021-05-28
ed 4 years ago
parent
commit
7d71efe6e0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h

+ 3
- 3
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h View File

@@ -755,9 +755,9 @@ private:
notification.setBounds (r.removeFromTop (NotificationArea::height));
if (editor != nullptr)
editor->setBounds (editor->getLocalArea (this, r.toFloat())
.withPosition (r.getTopLeft().toFloat().transformedBy (editor->getTransform().inverted()))
.toNearestInt());
editor->setBoundsConstrained (editor->getLocalArea (this, r.toFloat())
.withPosition (r.getTopLeft().toFloat().transformedBy (editor->getTransform().inverted()))
.toNearestInt());
}
private:


Loading…
Cancel
Save