For Bug 48260
This commit is contained in:
parent
499a033585
commit
7ecb043d4d
|
@ -368,6 +368,11 @@ define([
|
|||
else
|
||||
this._input.blur();
|
||||
}
|
||||
if (!this.isMenuOpen()) {
|
||||
if ((this.getRawValue() === this.lastValue))
|
||||
return true;
|
||||
this.setRawValue(this._input.val());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else if (e.keyCode == Common.UI.Keys.ESC && this.isMenuOpen()) {
|
||||
|
|
|
@ -548,8 +548,12 @@ define([
|
|||
})
|
||||
.on('changed:after', _.bind(function(combo, record) {
|
||||
if (me._changedProps) {
|
||||
me._changedProps.put_XAlign(undefined);
|
||||
me._changedProps.put_X(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value)));
|
||||
if (combo.getSelectedRecord()) {
|
||||
me._changedProps.put_XAlign(record.value);
|
||||
} else {
|
||||
me._changedProps.put_XAlign(undefined);
|
||||
me._changedProps.put_X(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value)));
|
||||
}
|
||||
}
|
||||
}, me))
|
||||
.on('selected', _.bind(function(combo, record) {
|
||||
|
@ -593,8 +597,12 @@ define([
|
|||
})
|
||||
.on('changed:after', _.bind(function(combo, record) {
|
||||
if (me._changedProps) {
|
||||
me._changedProps.put_YAlign(undefined);
|
||||
me._changedProps.put_Y(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value)));
|
||||
if (combo.getSelectedRecord()) {
|
||||
me._changedProps.put_YAlign(record.value);
|
||||
} else {
|
||||
me._changedProps.put_YAlign(undefined);
|
||||
me._changedProps.put_Y(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value)));
|
||||
}
|
||||
}
|
||||
}, me))
|
||||
.on('selected', _.bind(function(combo, record) {
|
||||
|
|
Loading…
Reference in a new issue