Commit a1114dac authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил баг http://bugzserver/show_bug.cgi?id=25609 (при закреплении учитываем merge-ячейки)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57423 954022d7-b5bf-4e40-9824-e11837661b57
parent afb61b5a
......@@ -3238,15 +3238,25 @@
var onChangeFreezePane = function (isSuccess) {
if (false === isSuccess)
return;
var col, row;
var col, row, mc;
if (null !== t.topLeftFrozenCell)
col = row = 0;
else if (0 === ar.startCol && 0 === ar.startRow) {
col = ((t.visibleRange.c2 - t.visibleRange.c1) / 2) >> 0;
row = ((t.visibleRange.r2 - t.visibleRange.r1) / 2) >> 0;
} else {
else {
col = ar.startCol;
row = ar.startRow;
if (0 !== row || 0 !== col) {
mc = t.model.getMergedByCell(row, col);
if (mc) {
col = mc.c1;
row = mc.r1;
}
}
if (0 === col && 0 === row) {
col = ((t.visibleRange.c2 - t.visibleRange.c1) / 2) >> 0;
row = ((t.visibleRange.r2 - t.visibleRange.r1) / 2) >> 0;
}
}
t._updateFreezePane(col, row);
};
......
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