Commit 3145771f authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

При выделении всех колонок даем изменить ширину у всех колонок

Баг http://bugzserver/show_bug.cgi?id=22054
Для строк нужны еще правки, т.к. выполняется долго

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52695 954022d7-b5bf-4e40-9824-e11837661b57
parent 61a9e096
......@@ -8360,7 +8360,18 @@
return;
var t = this;
var checkRange = null;
var arn = t.activeRange.clone(true);
if (c_oAscSelectionType.RangeMax === arn.type) {
checkRange = new asc_Range(0, 0, gc_nMaxCol0, gc_nMaxRow0);
} else if (c_oAscSelectionType.RangeCol === arn.type) {
checkRange = new asc_Range(arn.c1, 0, arn.c2, gc_nMaxRow0);
} else if (c_oAscSelectionType.RangeRow === arn.type) {
checkRange = new asc_Range(0, arn.r1, gc_nMaxCol0, arn.r2);
} else {
checkRange = arn;
}
var range;
var fullRecalc = undefined;
var pad, cw;
......@@ -8403,7 +8414,7 @@
functionModelAction = function () {
pad = t.width_padding * 2 + t.width_1px;
cw = t._charCountToModelColWidth(val, true);
t.model.setColWidth(cw, arn.c1, arn.c2);
t.model.setColWidth(cw, checkRange.c1, checkRange.c2);
isUpdateCols = true;
fullRecalc = true;
};
......
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