From 2c0bcb012a4d30fadeb3e0311dc406911d5e94fa Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 8 Apr 2020 23:50:56 +0300 Subject: [PATCH] Fix config editor breaking on non-100% zoom levels --- dashboard/src/components/dashboard/GuildConfigEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/components/dashboard/GuildConfigEditor.vue b/dashboard/src/components/dashboard/GuildConfigEditor.vue index 0d445f36..a17bc457 100644 --- a/dashboard/src/components/dashboard/GuildConfigEditor.vue +++ b/dashboard/src/components/dashboard/GuildConfigEditor.vue @@ -101,7 +101,7 @@ const editorElem = this.$refs.aceEditor.$el; const newWidth = editorElem.parentNode.clientWidth; const rect = editorElem.getBoundingClientRect(); - const newHeight = window.innerHeight - rect.top - 48; + const newHeight = Math.round(window.innerHeight - rect.top - 48); this.resizeEditor(newWidth, newHeight); }, resizeEditor(newWidth, newHeight) {