Fix convert text to table
This commit is contained in:
parent
9bc2f09917
commit
b6f8bbffcc
|
@ -163,7 +163,7 @@ define([
|
||||||
}).on('change', function(field, newValue, oldValue, eOpts){
|
}).on('change', function(field, newValue, oldValue, eOpts){
|
||||||
if (me.props) {
|
if (me.props) {
|
||||||
var size = me.props.put_ColsCount(field.getNumberValue(), true);
|
var size = me.props.put_ColsCount(field.getNumberValue(), true);
|
||||||
size && me.spnRows.setValue(size.rows, true);
|
size && me.spnRows.setValue(size[0], true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -253,8 +253,8 @@ define([
|
||||||
me.props.put_SeparatorType(3, true);
|
me.props.put_SeparatorType(3, true);
|
||||||
var size = me.props.put_Separator(newValue.charCodeAt(0), true);
|
var size = me.props.put_Separator(newValue.charCodeAt(0), true);
|
||||||
if (size) {
|
if (size) {
|
||||||
me.spnColumns.setValue(size.cols, true);
|
me.spnColumns.setValue(size[1], true);
|
||||||
me.spnRows.setValue(size.rows, true);
|
me.spnRows.setValue(size[0], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -278,8 +278,8 @@ define([
|
||||||
_setDefaults: function (props) {
|
_setDefaults: function (props) {
|
||||||
if (props) {
|
if (props) {
|
||||||
var val = props.get_Size();
|
var val = props.get_Size();
|
||||||
this.spnColumns.setValue(val.cols, true);
|
this.spnColumns.setValue(val[1], true);
|
||||||
this.spnRows.setValue(val.rows, true);
|
this.spnRows.setValue(val[0], true);
|
||||||
|
|
||||||
val = props.get_AutoFitType();
|
val = props.get_AutoFitType();
|
||||||
(val===1) ? this.rbFixed.setValue(true, true) : (val===2 ? this.rbContents.setValue(true, true) : this.rbWindow.setValue(true, true));
|
(val===1) ? this.rbFixed.setValue(true, true) : (val===2 ? this.rbContents.setValue(true, true) : this.rbWindow.setValue(true, true));
|
||||||
|
@ -376,8 +376,8 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (size) {
|
if (size) {
|
||||||
this.spnColumns.setValue(size.cols, true);
|
this.spnColumns.setValue(size[1], true);
|
||||||
this.spnRows.setValue(size.rows, true);
|
this.spnRows.setValue(size[0], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue