mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-02-12 10:26:05 +02:00
fixed: SimpleFMXBrowser: compilation failure with Delphi 10 Seattle
TCommonCustomForm.SetBounds(TRect) overloaded method is since Delphi 10.1 Berlin.
This commit is contained in:
parent
299c9ec0b1
commit
def9ab8a83
@ -207,18 +207,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TSimpleFMXBrowserFrm.ResizeChild;
|
procedure TSimpleFMXBrowserFrm.ResizeChild;
|
||||||
var
|
|
||||||
TempRect : System.Types.TRect;
|
|
||||||
begin
|
begin
|
||||||
if (FMXWindowParent <> nil) then
|
if (FMXWindowParent <> nil) then
|
||||||
begin
|
FMXWindowParent.SetBounds(0, round(AddressPnl.Height), ClientWidth - 1, ClientHeight - 1);
|
||||||
TempRect.Top := round(AddressPnl.Height);
|
|
||||||
TempRect.Left := 0;
|
|
||||||
TempRect.Right := ClientWidth - 1;
|
|
||||||
TempRect.Bottom := ClientHeight - 1;
|
|
||||||
|
|
||||||
FMXWindowParent.SetBounds(TempRect);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TSimpleFMXBrowserFrm.CreateFMXWindowParent;
|
procedure TSimpleFMXBrowserFrm.CreateFMXWindowParent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user