mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix config editor breaking on non-100% zoom levels
This commit is contained in:
parent
48a9e0e883
commit
2c0bcb012a
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue