input: display issue when resizing the window
This commit is contained in:
parent
9756e8923d
commit
b28d7faf5b
2 changed files with 8 additions and 0 deletions
|
|
@ -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')){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue