Skip to content

Commit 7fca6a3

Browse files
committed
Fix ParameterEditor label clipping in GraphViewer
1 parent 823dd89 commit 7fca6a3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Source/Processors/Parameter/ParameterEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void ParameterEditor::updateBounds()
4040
Rectangle<int> bounds = getBounds();
4141
int finalWidth = bounds.getWidth();
4242
int finalHeight = bounds.getHeight();
43-
int gap = finalWidth < 180 ? 4 : 4;
43+
int gap = finalWidth < 180 ? 2 : 4;
4444

4545
switch (layout)
4646
{

Source/UI/GraphViewer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ DataStreamInfo::DataStreamInfo (DataStream* stream_, GenericEditor* editor, Grap
522522
{
523523
// set parameter editor bounds
524524
paramEditor->setBounds (5, yPos, rowWidthPixels, rowHeightPixels);
525+
paramEditor->setLayout (ParameterEditor::nameOnRight);
525526
paramEditor->updateView();
526527
yPos += rowHeightPixels + 5;
527528

@@ -667,6 +668,7 @@ ProcessorParameterComponent::ProcessorParameterComponent (GenericProcessor* p)
667668
{
668669
// set parameter editor bounds
669670
editor->setBounds (5, yPos, rowWidthPixels, rowHeightPixels);
671+
editor->setLayout (ParameterEditor::nameOnRight);
670672
editor->updateView();
671673
yPos += rowHeightPixels + 5;
672674

0 commit comments

Comments
 (0)