input: fix horizontal mode when focused
This commit is contained in:
parent
322c98ce6e
commit
c772f6ad77
2 changed files with 9 additions and 2 deletions
|
|
@ -55,6 +55,10 @@ module.exports = class Input extends _canvas_base {
|
|||
this.value = ''
|
||||
this.stringValue = ''
|
||||
|
||||
if (this.getProp('horizontal')) {
|
||||
this.widget.addClass('horizontal')
|
||||
}
|
||||
|
||||
if (this.getProp('editable')) {
|
||||
this.canvas.attr('tabindex', 0)
|
||||
this.canvas.on('focus', this.focus.bind(this))
|
||||
|
|
|
|||
|
|
@ -2,8 +2,11 @@
|
|||
width: 100rem;
|
||||
height: 60rem;
|
||||
padding:1rem;
|
||||
.input {
|
||||
|
||||
.horizontal {
|
||||
input {
|
||||
transform: rotate(-90deg);
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.widget {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue