0

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?

enter image description here

5
  • How this issue relates to TChart control?
    – Dalija Prasnikar
    Commented Jan 22, 2019 at 19:04
  • Only with this object, the TChart, does the problem occur. If you simulate what I have described with another visual object, such as TPanel, TRectangle, or another visual container, that error does not occur.
    – wBB
    Commented Jan 22, 2019 at 19:58
  • Bug confirmed at the public tracker #2142
    – Yeray
    Commented Mar 20, 2019 at 11:29
  • Thanks for the confirmation. I hope Team Steema can make corrections.
    – wBB
    Commented Mar 20, 2019 at 12:33
  • For now, have you tried the ScaledLayout component? Just put the TChart on top of that and have it scale to the form? This would be something you can do which is a little "hacky" that might just work.
    – El Diablo
    Commented Dec 21, 2019 at 17:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.