Commit 9daa9a58 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Правка для scroll отрисовки и очистки заголовков для pane

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53116 954022d7-b5bf-4e40-9824-e11837661b57
parent 4db5df0a
......@@ -1934,6 +1934,9 @@
var offsetY = (undefined !== offsetYForDraw) ? offsetYForDraw : this.headersTop;
if (undefined === drawingCtx && this.topLeftFrozenCell && undefined === offsetXForDraw) {
var cFrozen = this.topLeftFrozenCell.getCol0();
if (start < vr.c1)
offsetX = c[0].left - this.cellsLeft;
else
offsetX -= c[cFrozen].left - c[0].left;
}
......@@ -1961,6 +1964,9 @@
var offsetY = (undefined !== offsetYForDraw) ? offsetYForDraw : r[vr.r1].top - this.cellsTop;
if (undefined === drawingCtx && this.topLeftFrozenCell && undefined === offsetYForDraw) {
var rFrozen = this.topLeftFrozenCell.getRow0();
if (start < vr.r1)
offsetY = r[0].top - this.cellsTop;
else
offsetY -= r[rFrozen].top - r[0].top;
}
......@@ -2101,6 +2107,7 @@
this.cols[i].width + this.width_1px, this.headersHeight);
}
if (0 !== cFrozen) {
offsetX = this.cols[0].left - this.cellsLeft;
// Почистим для pane
colStart = Math.max(0, colStart);
colEnd = Math.min(cFrozen, colEnd);
......@@ -2131,6 +2138,7 @@
this.headersWidth, this.rows[i].height + this.height_1px);
}
if (0 !== rFrozen) {
offsetY = this.rows[0].top - this.cellsTop;
// Почистим для pane
rowStart = Math.max(0, rowStart);
rowEnd = Math.min(rFrozen, rowEnd);
......
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