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
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
- bug fixes
|
||||
- remote-root option not applied on resources loaded by the client app (css images, etc)
|
||||
- input: display issue when resizing the window
|
||||
|
||||
- editor
|
||||
- context menu: add `export` action to export a widget as a fragment 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')){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue