Update input width when entering edit mode and clear mirror text when leaving edit mode

This commit is contained in:
Illimar Tambek
2014-03-07 14:42:07 +02:00
parent cfffa52523
commit f1843cbb0b

View File

@@ -803,6 +803,8 @@
.select()
.data( 'edit', true )
.width( tokenWidth )
this.update();
}
, unedit: function (focus) {
@@ -810,6 +812,7 @@
$_input.appendTo( this.$wrapper )
this.$input.data('edit', false)
this.$mirror.text('')
this.update()