Update to use setZoomFactor method to handle UI scaling (#1110)
* Update UI Scale to apply zoom to body and not app container. This will fix tooltips being out of alignment * Update to use electron's built in setZoomFactor method to handle UI scaling
This commit is contained in:
parent
bd27e50b51
commit
c255420169
1 changed files with 3 additions and 5 deletions
|
@ -507,11 +507,9 @@ const app = new Vue({
|
|||
history.forward()
|
||||
},
|
||||
getHTMLStyle() {
|
||||
if (app.cfg.visual.uiScale != 1) {
|
||||
document.querySelector("#app").style.zoom = app.cfg.visual.uiScale
|
||||
} else {
|
||||
document.querySelector("#app").style.zoom = ""
|
||||
}
|
||||
|
||||
ipcRenderer.send("setScreenScale", app.cfg.visual.uiScale);
|
||||
|
||||
},
|
||||
resetState() {
|
||||
this.menuPanel.visible = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue