mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 14:57:57 +02:00
Cocoa/ScrollView: fix the issue of missing child control callback clear in lclClearCallback()
This commit is contained in:
parent
950d962e1d
commit
d9ba51bbe9
@ -661,6 +661,8 @@ end;
|
||||
procedure TCocoaManualScrollView.lclClearCallback;
|
||||
begin
|
||||
callback := nil;
|
||||
if Assigned(self.documentView) then
|
||||
self.documentView.lclClearCallback;
|
||||
end;
|
||||
|
||||
function TCocoaManualScrollView.lclContentView: NSView;
|
||||
@ -1121,6 +1123,8 @@ end;
|
||||
procedure TCocoaScrollView.lclClearCallback;
|
||||
begin
|
||||
callback := nil;
|
||||
if Assigned(self.documentView) then
|
||||
self.documentView.lclClearCallback;
|
||||
end;
|
||||
|
||||
{ TCocoaScrollBar }
|
||||
|
Loading…
Reference in New Issue
Block a user