Jump to content
  • Status: Fixed
  • Priority: Normal
  • Resolution: Fixed
  • Platform: iOS
  • Affects version: 1.16.2.0

Hi

The following code centers the form on android but on iOS it's ignored and the form is shown in top left corner!

var
  ScreenWidth:Single;
  ScreenHeight:Single;
  FormWidth:Single;
  FormHeight:Single;
  FormPos:TPointF;
begin

  ScreenWidth := TfgScreenManager.Main.LogicalSize.Width;
  ScreenHeight := TfgScreenManager.Main.LogicalSize.Height;
  FormHeight := 420;
  FormWidth := ScreenWidth - 20;
  FormClock := TFormClock.create(nil);
  FormClock.Width := FormWidth;
  FormPos.X := ((ScreenWidth - FormClock.Width) / 2);
  FormPos.Y := (ScreenHeight - FormClock.Height) / 2;

 FormClock.Position.SetPointF(FormPos);

  TfgAnimationHelper.ShowModalForm(FormClock);
 

Have I missed something?


Fix version: 1.16.3.0

User Feedback

Recommended Comments

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.