I started working with "Delphi 10.3 Rio" and i'm looking at what seems to be a bug related to the TChart object. In an FMX application for "Android 8" I have just created a window with a single object, the TChart (Chart1.Align := TAlignLayout.Client
). In the OnClick
event I put the following:
procedure TForm1.Chart1Click(Sender: TObject);
begin
if Application.FormFactor.Orientations = [TScreenOrientation.Landscape] then
Application.FormFactor.Orientations := [TScreenOrientation.Portrait]
else
Application.FormFactor.Orientations := [TScreenOrientation.Landscape];
end;
ERROR: After changing the "Portrait" screen to "Landscape" and then returning to "Portrait", the screen isn't redrawn correctly and the bottom half is empty and black (cropped). See attached image.
How to fix it?