Commit 54a4d1f1 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Нужно очищать контекст для автофигур, когда scroll на весь экран

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56793 954022d7-b5bf-4e40-9824-e11837661b57
parent fc9688b5
......@@ -5249,6 +5249,9 @@
if (moveHeight > 0) {
ctx.drawImage(ctx.getCanvas(), x, y, oldW, moveHeight, x + dx, y - dy, oldW, moveHeight);
this.drawingGraphicCtx.moveImageData(x, y, oldW, moveHeight, x + dx, y - dy);
} else {
// Scroll на весь экран
this.drawingGraphicCtx.clear();
}
ctx.setFillStyle(this.settings.cells.defaultState.background)
.fillRect(this.headersLeft, y + (scrollDown ? oldH - dy - lastRowHeight : 0),
......@@ -5368,6 +5371,9 @@
if (oldW > 0) {
ctx.drawImage(ctx.getCanvas(), x, y, moveWidth, ctxH, x - dx, y, moveWidth, ctxH);
this.drawingGraphicCtx.moveImageData(x, y, moveWidth, ctxH, x - dx, y);
} else {
// Scroll на весь экран
this.drawingGraphicCtx.clear();
}
ctx.setFillStyle(this.settings.cells.defaultState.background)
.fillRect(x + (scrollRight > 0 ? oldW - dx - lastColWidth : 0), y, Math.abs(dx) + lastColWidth, ctxH);
......
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