mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:59:27 +02:00
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:
parent
b63451bdf7
commit
8bc6b71bf5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user