fixes alignment issue in waveform canvas

This commit is contained in:
Eyck Jentzsch 2023-03-19 17:09:13 +01:00
parent dc4798b8ba
commit 1a86104b19
1 changed files with 3 additions and 0 deletions

View File

@ -363,6 +363,9 @@ public class WaveformCanvas extends Canvas implements IWaveformZoom{
} else { /* image is less higher than client area */
vertical.setMaximum(clientHeight);
vertical.setEnabled(false);
if ( -origin.y > vertical.getMaximum() - height) {
origin.y = -vertical.getMaximum() + height;
}
}
vertical.setThumb(clientHeight);
vertical.setSelection(-origin.y);