jahlxx Posted May 26, 2016 Posted May 26, 2016 Hi. I can't make zoom or scroll in the web browser in my apps. Is there any parameter I've forgotten? Thanks. Quote
Sherzod Posted May 26, 2016 Posted May 26, 2016 Hi, Sorry, can you clarify your question ?!What platform, and how are you trying to do it ?! Best regards. Quote
jahlxx Posted May 26, 2016 Author Posted May 26, 2016 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 Quote
jahlxx Posted June 4, 2016 Author Posted June 4, 2016 some help? I can't do zoom in unigui apps. thanks. Quote
jahlxx Posted June 5, 2016 Author Posted June 5, 2016 The browser raise the message: the page does not allow zoom function. and I can't scroll up down rigth or left. this hapens in mobile device and tablets. Quote
ZigZig Posted June 5, 2016 Posted June 5, 2016 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 Quote
jahlxx Posted June 5, 2016 Author Posted June 5, 2016 Ok. With this: <meta name="viewport" content="width=device-width, initial-scale=1.0"> I can do zoom in, but not zoom out. maybe defining minimum scale? Quote
ZigZig Posted June 5, 2016 Posted June 5, 2016 maybe defining minimum scale? Maybe! Could you please test that property and tell us if it works? Quote
jahlxx Posted October 19, 2016 Author Posted October 19, 2016 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.