From 44114a7f2c053bc913921a9fa215bf1c9e8c79ed Mon Sep 17 00:00:00 2001 From: xenakios Date: Mon, 7 May 2018 20:47:17 +0300 Subject: [PATCH] Calloutbox tweak --- Source/PluginEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 063ea20..1d7bed6 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -248,8 +248,8 @@ PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor() void PaulstretchpluginAudioProcessorEditor::showRenderDialog() { auto content = new RenderSettingsComponent(&processor); - CallOutBox& myBox - = CallOutBox::launchAsynchronously(content, getScreenBounds(), nullptr); + content->setSize(content->getWidth(), content->getPreferredHeight()); + CallOutBox& myBox = CallOutBox::launchAsynchronously(content, m_render_button.getBounds(), this); } void PaulstretchpluginAudioProcessorEditor::paint (Graphics& g)