3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Fix config editor breaking on non-100% zoom levels

This commit is contained in:
Dragory 2020-04-08 23:50:56 +03:00
parent 8c643bca86
commit 793c0a889e

View file

@ -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) {