Commit 85d91fe0 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил 255 на константу

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61293 954022d7-b5bf-4e40-9824-e11837661b57
parent 0357075f
......@@ -642,7 +642,7 @@
var w = Math.max(x2 - x1, 0);
if (w === t.cols[col].width)
return;
var cc = Math.min(t._colWidthToCharCount(w), /*max col width*/255);
var cc = Math.min(t._colWidthToCharCount(w), c_oAscMaxColumnWidth);
var cw = t._charCountToModelColWidth(cc);
var onChangeWidthCallback = function (isSuccess) {
......@@ -4201,7 +4201,7 @@
};
WorksheetView.prototype._changeColWidth = function (col, width, pad) {
var cc = Math.min(this._colWidthToCharCount(width + pad), /*max col width*/255);
var cc = Math.min(this._colWidthToCharCount(width + pad), c_oAscMaxColumnWidth);
var modelw = this._charCountToModelColWidth(cc);
var colw = this._calcColWidth(modelw);
......@@ -9951,7 +9951,7 @@
var pad, cc, cw;
if (width > 0) {
pad = this.width_padding * 2 + this.width_1px;
cc = Math.min(this._colWidthToCharCount(width + pad), /*max col width*/255);
cc = Math.min(this._colWidthToCharCount(width + pad), c_oAscMaxColumnWidth);
cw = this._charCountToModelColWidth(cc);
} else {
cw = gc_dDefaultColWidthCharsAttribute;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment