[SSE] Allow decimal values for column width
This commit is contained in:
parent
fdd018a8bd
commit
731619473e
|
@ -537,6 +537,7 @@ define([
|
|||
startvalue: item.value == 'row-height' ? me.api.asc_getRowHeight() : me.api.asc_getColumnWidth(),
|
||||
maxvalue: item.value == 'row-height' ? Asc.c_oAscMaxRowHeight : Asc.c_oAscMaxColumnWidth,
|
||||
step: item.value == 'row-height' ? 0.75 : 1,
|
||||
rounding: (item.value == 'row-height'),
|
||||
defaultUnit: item.value == 'row-height' ? Common.Utils.Metric.getMetricName(Common.Utils.Metric.c_MetricUnits.pt) : me.textSym,
|
||||
handler: function(dlg, result) {
|
||||
if (result == 'ok') {
|
||||
|
|
|
@ -105,7 +105,8 @@ define([
|
|||
var $window = this.getChild();
|
||||
$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
||||
this.spnSize.on('entervalue', _.bind(this.onPrimary, this));
|
||||
this.spnSize.on('change', _.bind(this.onChange, this));
|
||||
if (this.options.rounding)
|
||||
this.spnSize.on('change', _.bind(this.onChange, this));
|
||||
this.spnSize.$el.find('input').focus();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue