[SSE] Allow decimal values for column width

This commit is contained in:
Julia Radzhabova 2018-06-08 17:51:40 +03:00
parent fdd018a8bd
commit 731619473e
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -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();
},