From 3417dfe86da0f6e9a41b3e71e30485a84213ffbf Mon Sep 17 00:00:00 2001 From: regulus79 <117475203+regulus79@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:13:00 -0500 Subject: [PATCH] Fix Envelope and LFO Graph Size on Resizeable Instruments (#7738) --- src/gui/instrument/EnvelopeAndLfoView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/instrument/EnvelopeAndLfoView.cpp b/src/gui/instrument/EnvelopeAndLfoView.cpp index 959264506..90e2aa30e 100644 --- a/src/gui/instrument/EnvelopeAndLfoView.cpp +++ b/src/gui/instrument/EnvelopeAndLfoView.cpp @@ -28,6 +28,7 @@ #include #include +#include #include "EnvelopeGraph.h" #include "LfoGraph.h" @@ -85,6 +86,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView(QWidget * parent) : m_envelopeGraph = new EnvelopeGraph(this); graphAndAmountLayout->addWidget(m_envelopeGraph); + m_envelopeGraph->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); m_amountKnob = buildKnob(tr("AMT"), tr("Modulation amount:")); graphAndAmountLayout->addWidget(m_amountKnob, 0, Qt::AlignCenter); @@ -124,6 +126,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView(QWidget * parent) : lfoLayout->addLayout(graphAndTypesLayout); m_lfoGraph = new LfoGraph(this); + m_lfoGraph->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); graphAndTypesLayout->addWidget(m_lfoGraph); QHBoxLayout* typesLayout = new QHBoxLayout();