LCL: Update contents of TTreeView better when Scrollbars are hidden with ssAutoVertical. Issue #36731, patch from nappsoft.

git-svn-id: trunk@62843 -
This commit is contained in:
juha 2020-04-01 10:43:21 +00:00
parent 01082a807d
commit 7c479cba63

View File

@ -4360,6 +4360,8 @@ begin
if (fScrollBars in [ssAutoBoth, ssAutoVertical])
and (ScrollInfo.nPage>=cardinal(ScrollInfo.nMax)) then begin
//DebugLn(['TCustomTreeView.UpdateScrollbars Hide Vertical.']);
ScrollInfo.nPos:=0;
SetScrollInfo(Handle, SB_VERT, ScrollInfo, false);
FLastVertScrollInfo.cbSize:=0;
SetShowScrollBar(SB_VERT, false);
end else begin