input: fix horizontal mode when focused

This commit is contained in:
jean-emmanuel 2017-12-21 12:57:01 +01:00
parent 322c98ce6e
commit c772f6ad77
2 changed files with 9 additions and 2 deletions

View file

@ -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))

View file

@ -2,8 +2,11 @@
width: 100rem;
height: 60rem;
padding:1rem;
.input {
.horizontal {
input {
transform: rotate(-90deg);
vertical-align: middle;
}
}
}
.widget {