nodeparamview: improved node value tree size policy

This commit is contained in:
itsmattkc
2021-09-22 18:55:56 -07:00
parent c15f92320d
commit 8796cce8c6
3 changed files with 14 additions and 2 deletions
@@ -39,6 +39,11 @@ NodeParamViewConnectedLabel::NodeParamViewConnectedLabel(const NodeInput &input,
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
QSizePolicy p = sizePolicy();
p.setHorizontalStretch(1);
p.setHorizontalPolicy(QSizePolicy::Expanding);
setSizePolicy(p);
// Set up label area
QHBoxLayout *label_layout = new QHBoxLayout();
label_layout->setSpacing(QtUtils::QFontMetricsWidth(fontMetrics(), QStringLiteral(" ")));