Commit 254154ae authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Для скрола групп автофигур: updatedRect = { x: 0, y: 0, w: 0, h: 0 }

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53192 954022d7-b5bf-4e40-9824-e11837661b57
parent 3b46ff61
......@@ -3447,6 +3447,23 @@ function DrawingObjects() {
// Clip
_this.clipGraphicsCanvas(shapeCtx, scrollType);
// Area for update
if ( scrollType ) {
var updatedRect = { x: 0, y: 0, w: 0, h: 0 };
var updatedRange = scrollType.getUpdatedRange();
var offsetX = worksheet.cols[worksheet.visibleRange.c1].left - worksheet.cellsLeft;
var offsetY = worksheet.rows[worksheet.visibleRange.r1].top - worksheet.cellsTop;
updatedRect.x = worksheet.getCellLeft(updatedRange.c1, 3) - ptToMm(offsetX) - pxToMm(scrollOffset.getX());
updatedRect.y = worksheet.getCellTop(updatedRange.r1, 3) - ptToMm(offsetY) - pxToMm(scrollOffset.getY());
updatedRect.w = worksheet.getCellLeft(updatedRange.c2, 3) - worksheet.getCellLeft(updatedRange.c1, 3);
updatedRect.h = worksheet.getCellTop(updatedRange.r2, 3) - worksheet.getCellTop(updatedRange.r1, 3);
shapeCtx.updatedRect = updatedRect;
}
else
shapeCtx.updatedRect = null;
for (var i = 0; i < aObjects.length; i++) {
......@@ -3493,6 +3510,7 @@ function DrawingObjects() {
}
worksheet.model.Drawings = aObjects;
}
if ( !printOptions ) {
if ( aObjects.length ) {
......
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