mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:59:07 +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);
|
inherited setFrame(aframe);
|
||||||
|
|
||||||
|
if lclGetTarget is TScrollingWinControl then begin
|
||||||
lclControl:= TScrollingWinControl(lclGetTarget);
|
lclControl:= TScrollingWinControl(lclGetTarget);
|
||||||
newDocSize:= contentSize;
|
newDocSize:= contentSize;
|
||||||
|
|
||||||
@ -1098,6 +1099,7 @@ begin
|
|||||||
newDocSize.Height:= lclBar.Range;
|
newDocSize.Height:= lclBar.Range;
|
||||||
|
|
||||||
documentView.setFrameSize(newDocSize);
|
documentView.setFrameSize(newDocSize);
|
||||||
|
end;
|
||||||
|
|
||||||
if lclHorzScrollInfo.fMask<>0 then
|
if lclHorzScrollInfo.fMask<>0 then
|
||||||
applyScrollInfo(SB_Horz, lclHorzScrollInfo);
|
applyScrollInfo(SB_Horz, lclHorzScrollInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user