Scale in Webview
Posted:
Fri Feb 10, 2023 7:47 pm
by Natter
Hi,
Is it possible to scale in Webview ?
Re: Scale in Webview
Posted:
Sat Feb 11, 2023 9:49 am
by Natter
Yes. On the webview object, I set the desired zooming ctrl+ and ctrl-. Is it possible to automatically set this zooming every time a webview element is created ?
Re: Scale in Webview
Posted:
Sat Feb 11, 2023 7:27 pm
by Natter
Thank you, Horizon! And what is 2 ? This is 200% ?
Re: Scale in Webview
Posted:
Sun Feb 12, 2023 3:50 am
by cnavarro
Horizon wrote:Hi,
Can you please try it?
- Code: Select all Expand view
oWebView:Eval('document.body.style.zoom = 2')
Please, read ( zoom feature is non-standard and is not on a standards track )
https://developer.mozilla.org/en-US/docs/Web/CSS/zoomUse scale() ( transform: scale( ... ) )
https://developer.mozilla.org/en-US/doc ... tion/scale