Skip to content

Commit 514d2c8

Browse files
authored
Merge pull request #228 from mspacek/spikeviewlayout
Reduce wasted space in spike viewer, make scrollbar visible
2 parents c19765b + 89eab6a commit 514d2c8

1 file changed

Lines changed: 6 additions & 6 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

0 commit comments

Comments
 (0)