iOS Scaling / Viewing

Forum to discuss the new web client version of Servoy.

iOS Scaling / Viewing

Postby rafig » Thu Dec 13, 2018 8:07 pm

Hi,
I am trying to create an NG client solution that will run over the web on a mobile phone (e.g iPhone)
I have created a form and it displays fine in desktop browser, but when viewed on my iPhone is very 'small', i.e. it is not scaling up, so all text & images are small on it (like it is using full resolution of iPhone display).
How can I get it to automatically change it's scale or whatever so that it defaults to a kind of 'zoomed in' mode, so text & images are at a normal size on the iPhone screen??

I am hoping there is something like a
Code: Select all
application.putClientProperty

with some parameters that I just need to put in my onOpen method, but I don't know what :cry:
(something like this from an HTML HEAD
Code: Select all
<meta name=“viewport” content=“width=device-width”>
??)

Thanks
Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 704
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: iOS Scaling / Viewing

Postby Joas » Sat Dec 15, 2018 2:13 pm

Try this in your onOpen method:
Code: Select all
plugins.ngclientutils.setViewportMetaDefaultForMobileAwareSites();
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: iOS Scaling / Viewing

Postby rafig » Sun Dec 16, 2018 1:32 pm

Joas wrote:Try this in your onOpen method:
Code: Select all
plugins.ngclientutils.setViewportMetaDefaultForMobileAwareSites();


OMG!
That was exactly what I needed!
Thank you SO much!!!

This is what the forums are all about ;-)

Thanks Joas, I really appreciate it
Servoy Certified Developer
Image
rafig
 
Posts: 704
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: iOS Scaling / Viewing

Postby Joas » Tue Dec 18, 2018 6:51 am

You're welcome!

I'm glad I could help :)
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests