Jump to content

browsing soom


jahlxx

Recommended Posts

ok, sorry.

 

I have an app with unigui (not mobile)

 

I put it in the web server.

 

Wher I enter the app from a PC or laptop, is ok.

 

But when I enter the app fron a mobile or a tablet, I can't do zoom or scroll. The browser raise a error that this page does not allow zoom

Link to comment
Share on other sites

  • 2 weeks later...

Hello jahlxx,

 

It seems that ExtJS used to have an issue with zoom on mobile on older versions than 5.5. (see https://www.sencha.com/forum/showthread.php?287219)
I don't know if version 4.2 (as embedded in uniGUI) contains this bug.

 

Anyway, you can take a look at these solutions (which depend on your mobile OS) :

 

 

 

For iOS and Android: try to customize the "content" meta in your head section (meta name="viewport" content="...").  Basically, remove "minimum-scale", "maximum-scale" and "user-scalable", just keep this content :

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

For Windows devices, you have to check your CSS, the prefixed CSS rule "@-ms-viewport" must not contain a "zoom" property :

@-ms-viewport { width: device-width; }

I guess that you can apply your own Meta or CSS with "CustomMeta" and "CustomCSS" properties of ServerModule, but Farshad or Delphi Developer will be more accurate than me!

 

 

 

 

 

 

more info :

http://adrianroselli.com/2015/10/dont-disable-zoom.html

https://davidwalsh.name/zoom-mobile-browsers

Link to comment
Share on other sites

  • 4 months later...

Hi.

 

I'm still fighting with this, playing with scrollboxes, and so.

 

Is there a posibility of define the initialzomm of mainform? I think that if I can do zoom in, but not zoom out, it could be a good idea, detect the device from I'm executinng the app, and if this device is a cell phone, rededefine the initial zoom, and show the app in a small size, but can do zoom in.

 

What do you think?

 

Is possible?

 

How?

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...