Skip to content

Commit

Permalink
Fixed issue #1187
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Apr 13, 2023
1 parent d3c0e71 commit ccfb61c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/VirtualTrees.StyleHooks.pas
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ procedure TVclStyleScrollBarsHook.CalcScrollBarsRect();
constructor TVclStyleScrollBarsHook.Create(AControl: TWinControl);
begin
inherited;
InitScrollBars;

{$ifdef NOT_USE_VCL_STYLEHOOK}
VertSliderState := tsThumbBtnVertNormal;
VertUpState := tsArrowBtnUpNormal;
Expand Down Expand Up @@ -244,6 +242,9 @@ procedure TVclStyleScrollBarsHook.UpdateScroll;
PaddingSize: Integer;
BorderSize: Integer;
begin
if VertScrollWnd = nil then
InitScrollBars();

HeaderHeight := 0;
if (hoVisible in TBaseVirtualTree(Control).Header.Options) then
Inc(HeaderHeight, TBaseVirtualTree(Control).Header.Height);
Expand Down

0 comments on commit ccfb61c

Please sign in to comment.