Skip to content

Commit 86da866

Browse files
committed
Fix invisible channel rows issue
1 parent 31dd443 commit 86da866

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Source/Plugins/ChannelMappingNode/ChannelMappingEditor.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,13 @@ void ChannelMappingEditor::refreshButtonLocations()
228228
button->setBounds(column*width, row*height, width, height);
229229
totalWidth = jmax(totalWidth, ++column*width);
230230

231-
if (column % 16 == 0)
231+
if (column == 1)
232232
{
233-
totalHeight = jmax(totalHeight, ++row*height);
233+
totalHeight = jmax(totalHeight, (row + 1)*height);
234+
}
235+
else if (column == 16)
236+
{
237+
row++;
234238
column = 0;
235239
}
236240
}

0 commit comments

Comments
 (0)