CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Android size problem

General discussion

by ali » 25 Jul 2016 16:25

Hi,

Testing Mobile Components i'm having trobles with the size on Android. Iphone and desktop are working fine.
I've tested with several phones, Android 4 and Android 5.

Application is running here:

http://tinyurl.com/j5ttd6e

The application has 2 forms.

How to reproduce problem with Android phone:
1) When app starts mainform is shown correctly.
2) When user press the button, Form2 is created and shown correctly.
3) When user press header left buton, form2 releases.
4) mainform is shown and components are shown very small.

I'm using CGDevtools Version 2.9.0.284, Delphi XE2 IW 12.2.34

App is compiled with these options:
Code: Select all
  ServerController.Compression.AllowGZip := false;
  ServerController.Compression.AllowDeflate := false;
  ServerController.Compression.Enabled := false;
  ServerController.DebugHTML := true;
  ServerController.JavascriptDebug := true;


Thank you.
You do not have the required permissions to view the files attached to this post.
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Alexander Bulei » 26 Jul 2016 17:07

Hi,

Please post right demo source code...

Best Regards
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ali » 26 Jul 2016 17:55

Hi,

Sorry if the source was wrong.
Here is it again.

regards.
You do not have the required permissions to view the files attached to this post.
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Alexander Bulei » 01 Aug 2016 16:26

Hi ali,

I have noticed, you don't have the important meta tag for devices:

<meta name="viewport" content="width=device-width, initial-scale=1">


Please add this line to ExtraHeader in main form, or in HTMLHeaders in ServerController.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ali » 01 Aug 2016 16:56

Thank you very much Alex!

Now it's working properly.

Regards
ali
 
Posts: 35
Joined: 26 May 2015 15:49


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.