mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 13:30:37 +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;
|
procedure TCocoaManualScrollView.lclClearCallback;
|
||||||
begin
|
begin
|
||||||
callback := nil;
|
callback := nil;
|
||||||
|
if Assigned(self.documentView) then
|
||||||
|
self.documentView.lclClearCallback;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCocoaManualScrollView.lclContentView: NSView;
|
function TCocoaManualScrollView.lclContentView: NSView;
|
||||||
@ -1121,6 +1123,8 @@ end;
|
|||||||
procedure TCocoaScrollView.lclClearCallback;
|
procedure TCocoaScrollView.lclClearCallback;
|
||||||
begin
|
begin
|
||||||
callback := nil;
|
callback := nil;
|
||||||
|
if Assigned(self.documentView) then
|
||||||
|
self.documentView.lclClearCallback;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TCocoaScrollBar }
|
{ TCocoaScrollBar }
|
||||||
|
Loading…
Reference in New Issue
Block a user