Skip to content

Commit c19765b

Browse files
committed
Merge branch 'development' of https://github.com/open-ephys/plugin-GUI into development
2 parents 8c5b50b + 80d9233 commit c19765b

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)