summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_tree.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/fpg_tree.pas b/src/gui/fpg_tree.pas
index 37d2af22..00ab6c8e 100644
--- a/src/gui/fpg_tree.pas
+++ b/src/gui/fpg_tree.pas
@@ -1231,8 +1231,10 @@ begin
FVScrollbar.Visible := VisibleHeight < (GetNodeHeightSum * GetNodeHeight);
FVScrollbar.Min := 0;
FVScrollbar.Max := (GetNodeHeightSum * GetNodeHeight) - VisibleHeight + FHScrollbar.Height;
+ FVScrollbar.PageSize := (VisibleHeight div 4) * 3; // three quarters of the height
FHScrollbar.Min := 0;
FHScrollbar.Max := MaxNodeWidth - VisibleWidth + FVScrollbar.Width;
+ FHScrollbar.PageSize := (VisibleWidth div 4) * 3; // three quarters of the height
FHScrollbar.Visible := MaxNodeWidth > Width - 2;
if not FVScrollbar.Visible then
begin