mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 09:00:34 +02:00
Cocoa: Fix code assumption that target is always TScrollingWinControl
This commit is contained in:
parent
62fddfd5f2
commit
83940629e2
@ -1086,6 +1086,7 @@ begin
|
||||
|
||||
inherited setFrame(aframe);
|
||||
|
||||
if lclGetTarget is TScrollingWinControl then begin
|
||||
lclControl:= TScrollingWinControl(lclGetTarget);
|
||||
newDocSize:= contentSize;
|
||||
|
||||
@ -1098,6 +1099,7 @@ begin
|
||||
newDocSize.Height:= lclBar.Range;
|
||||
|
||||
documentView.setFrameSize(newDocSize);
|
||||
end;
|
||||
|
||||
if lclHorzScrollInfo.fMask<>0 then
|
||||
applyScrollInfo(SB_Horz, lclHorzScrollInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user