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

wBB
  • 821
  • 1
  • 18
  • 39
  • How this issue relates to TChart control? – Dalija Prasnikar Jan 22 '19 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 Jan 22 '19 at 19:58
  • Bug confirmed at the public tracker [#2142](http://bugs.teechart.net/show_bug.cgi?id=2142) – Yeray Mar 20 '19 at 11:29
  • Thanks for the confirmation. I hope Team Steema can make corrections. – wBB Mar 20 '19 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 Dec 21 '19 at 17:36

0 Answers0