input: display issue when resizing the window

This commit is contained in:
bordun 2021-04-15 11:22:21 +02:00
parent 9756e8923d
commit b28d7faf5b
2 changed files with 8 additions and 0 deletions

View file

@ -117,6 +117,13 @@ class Input extends Canvas {
resizeHandle(event){
if (this.fontSize && event.height !== this.fontSize) {
// little hack to prevent flex layout issues
// alternate fix is to set css 'height: 100%;' on the canvas element
// but it produces a big drawing context for just one line of text.
event.height = this.fontSize
}
super.resizeHandle(event)
// if (this.getProp('vertical')){