@@ -123,22 +123,22 @@ void SpikeDisplayCanvas::refreshState()
123123
124124void 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
138138void 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