aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-29 22:59:47 +0100
committer0neGal <mail@0negal.com>2021-12-29 22:59:47 +0100
commit474f2ae54000463a0a2dfc84ad678a7620cc3d44 (patch)
tree3ead3d9fb078daefed14392db88c1cb3a4af8a7e /src/app/main.js
parent4abe10aebdfa06c9b9c31c98f084d511e3e2e319 (diff)
downloadViper-474f2ae54000463a0a2dfc84ad678a7620cc3d44.tar.gz
Viper-474f2ae54000463a0a2dfc84ad678a7620cc3d44.zip
proper responsiveness for all languages
This should more or less ensure everything remains responsive even if the language is one with very long strings.
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 579f785..0118b0c 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -34,3 +34,8 @@ function launchVanilla() {ipcRenderer.send("launchVanilla")}
ipcRenderer.on("newpath", (event, newpath) => {
settings.gamepath = newpath;
})
+
+setlang();
+setInterval(() => {
+ ipcRenderer.send("setsize", document.querySelector(".lines").offsetHeight + 25);
+}, 150)