wails
wails copied to clipboard
Is there any way to set zoom level?
How to achieve the same functionality as web browser, to have native zoom level?
In chromium there is
If I just simply use: document.body.style.zoom = 1.5;
on my frontend side it breaks my internal modules (monaco editor)
Is there any way to do this?
Hi. Not currently.
I will give a PR a try using Get/Put IsZoomControlEnabled
Idea would be:
- Add an App.run option for it
- Add API to get/set it
- if there is an API for it, add API to get/set the zoom factor (could not find so far :)
As the reporter mentioned, use the meta to scale fonts break the layout in most cases. These are two different scale methods with different impacts. One is only for font, the other is viewport scaling as a whole. Thoughts?
I don't have any thoughts on this. Why not try it out and see how you get on? If you are doing an App.run
option then you can make it Windows only. If you want to add it to the runtime then it will need to support Linux and MacOS too.
I don't have any thoughts on this. Why not try it out and see how you get on? If you are doing an
App.run
option then you can make it Windows only. If you want to add it to the runtime then it will need to support Linux and MacOS too.
Will do the option today :)
Merged!