Skip to content

Commit 04f34c2

Browse files
committed
Merge branch 'development' of github.com:open-ephys/plugin-GUI into development
2 parents f8e172b + 514d2c8 commit 04f34c2

10 files changed

Lines changed: 4139 additions & 8 deletions

File tree

Source/Plugins/BasicSpikeDisplay/SpikeDisplayNode/SpikeDisplayCanvas.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ void SpikeDisplayCanvas::refreshState()
123123

124124
void SpikeDisplayCanvas::resized()
125125
{
126-
viewport->setBounds(0,0,getWidth(),getHeight()-90);
126+
viewport->setBounds(0, 0, getWidth(), getHeight()-30); // leave space at bottom for buttons
127127

128128
spikeDisplay->setBounds(0,0,getWidth()-scrollBarThickness, spikeDisplay->getTotalHeight());
129129

130-
clearButton->setBounds(10, getHeight()-40, 100,20);
130+
clearButton->setBounds(10, getHeight()-25, 130, 20);
131131

132-
lockThresholdsButton->setBounds(130, getHeight()-40, 130,20);
132+
lockThresholdsButton->setBounds(10+130+10, getHeight()-25, 130, 20);
133133

134-
invertSpikesButton->setBounds(270, getHeight()-40, 130,20);
134+
invertSpikesButton->setBounds(10+130+10+130+10, getHeight()-25, 130, 20);
135135

136136
}
137137

138138
void SpikeDisplayCanvas::paint(Graphics& g)
139139
{
140140

141-
g.fillAll(Colours::darkgrey);
141+
g.fillAll(Colours::black);
142142

143143
}
144144

@@ -423,7 +423,7 @@ void SpikeDisplay::resized()
423423

424424
}
425425

426-
totalHeight = (int) maxHeight + 50;
426+
totalHeight = (int) maxHeight;
427427

428428
// std::cout << "New height = " << totalHeight << std::endl;
429429

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)