1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

Added a workaround for WaveLab invisible editor bug

This commit is contained in:
hogliux 2016-11-25 14:32:11 +00:00
parent 2f5b8e5f9f
commit 284bc706c9

View file

@ -705,7 +705,7 @@ private:
#endif
//==============================================================================
class JuceVST3Editor : public Vst::EditorView
class JuceVST3Editor : public Vst::EditorView, private Timer
{
public:
JuceVST3Editor (JuceVST3EditController& ec, AudioProcessor& p)
@ -757,6 +757,10 @@ private:
systemWindow = parent;
attachedToParent();
// Life's too short to faff around with wave lab
if (getHostType().isWavelab())
startTimer (200);
return kResultTrue;
}
@ -843,6 +847,15 @@ private:
}
private:
void timerCallback() override
{
stopTimer ();
ViewRect rect;
getSize (&rect);
onSize (&rect);
}
//==============================================================================
class ContentWrapperComponent : public Component
{