cocoa: implement hiding of scrolling bars, if the page is larger than the range. #32966

git-svn-id: trunk@57006 -
This commit is contained in:
dmitry 2018-01-07 17:33:10 +00:00
parent b63451bdf7
commit 8bc6b71bf5

View File

@ -1792,7 +1792,11 @@ begin
end;
if Assigned(bar) then
Result := CocoaScrollBarSetScrollInfo(bar, ScrollInfo)
begin
Result := CocoaScrollBarSetScrollInfo(bar, ScrollInfo);
if bar.pageInt >= bar.maxInt-bar.minInt then
ShowScrollBar(Handle, SBStyle, false);
end
else
Result := 0;