Skip to content

Commit 0040c32

Browse files
committed
Resize editor correctly on content update
1 parent 171a7fd commit 0040c32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/arduino/components/editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ for i in range(0, 10):
6262
if (newContent) {
6363
this.editor.setValue(newContent)
6464
}
65+
setTimeout(() => this.editor.resize(), 10)
6566
return false
6667
}
6768
}

0 commit comments

Comments
 (0)