Improve readability of the first line when "Start new period decodes at top" is checked.

(cherry picked from commit a00229c8854121e63db6633e5cf47b99b88cdba1)
This commit is contained in:
Uwe Risse 2024-03-23 12:47:43 +01:00
parent 3097b20bc7
commit 343c339de0

View File

@ -234,6 +234,7 @@ void DisplayText::extend_vertical_scrollbar (int min, int max)
}
if (max && max != modified_vertical_scrollbar_max_)
{
setViewportMargins (0,4,0,0); // ensure first line is readable
auto vp_margins = viewportMargins ();
// add enough to vertical scroll bar range to allow last
// decode to just scroll of the top of the view port