We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c0e71 commit ccfb61cCopy full SHA for ccfb61c
1 file changed
Source/VirtualTrees.StyleHooks.pas
@@ -195,8 +195,6 @@ procedure TVclStyleScrollBarsHook.CalcScrollBarsRect();
195
constructor TVclStyleScrollBarsHook.Create(AControl: TWinControl);
196
begin
197
inherited;
198
- InitScrollBars;
199
-
200
{$ifdef NOT_USE_VCL_STYLEHOOK}
201
VertSliderState := tsThumbBtnVertNormal;
202
VertUpState := tsArrowBtnUpNormal;
@@ -244,6 +242,9 @@ procedure TVclStyleScrollBarsHook.UpdateScroll;
244
242
PaddingSize: Integer;
245
243
BorderSize: Integer;
246
+ if VertScrollWnd = nil then
+ InitScrollBars();
247
+
248
HeaderHeight := 0;
249
if (hoVisible in TBaseVirtualTree(Control).Header.Options) then
250
Inc(HeaderHeight, TBaseVirtualTree(Control).Header.Height);
0 commit comments