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

- checkGraphicObjectPosition return { result, x, y }

- апдейт канвы при скроле

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47609 954022d7-b5bf-4e40-9824-e11837661b57
parent 893d1574
...@@ -3371,12 +3371,20 @@ function DrawingObjects() { ...@@ -3371,12 +3371,20 @@ function DrawingObjects() {
false - наезд на хидеры false - наезд на хидеры
*/ */
var top = worksheet.getCellTop(0, 3); var response = { result: true, x: 0, y: 0 };
var left = worksheet.getCellLeft(0, 3);
var top = worksheet.getCellTop(0, 3) + pxToMm(1);
var left = worksheet.getCellLeft(0, 3) + pxToMm(1);
// выход за границу слева или сверху // выход за границу слева или сверху
if ( (y < top) || (x < left) ) if ( y < top ) {
return false; response.result = false;
response.y = top - y;
}
if ( x < left ) {
response.result = false;
response.x = left - x;
}
// выход за границу справа // выход за границу справа
var foundCol = worksheet._findColUnderCursor(mmToPt(x + w), true); var foundCol = worksheet._findColUnderCursor(mmToPt(x + w), true);
...@@ -3394,7 +3402,7 @@ function DrawingObjects() { ...@@ -3394,7 +3402,7 @@ function DrawingObjects() {
foundRow = worksheet._findRowUnderCursor(mmToPt(y + h), true); foundRow = worksheet._findRowUnderCursor(mmToPt(y + h), true);
} }
return true; return response;
} }
_this.addGraphicGroup = function() { _this.addGraphicGroup = function() {
......
...@@ -4861,7 +4861,7 @@ ...@@ -4861,7 +4861,7 @@
this.cellCommentator.updateCommentPosition(); this.cellCommentator.updateCommentPosition();
this.autoFilters.drawAutoF(this); this.autoFilters.drawAutoF(this);
this.drawDepCells(); this.drawDepCells();
this.objectRender.showDrawingObjects(false); this.objectRender.showDrawingObjects(true);
return this; return this;
}, },
...@@ -4915,7 +4915,7 @@ ...@@ -4915,7 +4915,7 @@
this._updateHyperlinksCache(); this._updateHyperlinksCache();
this.autoFilters.drawAutoF(this); this.autoFilters.drawAutoF(this);
this.drawDepCells(); this.drawDepCells();
this.objectRender.showDrawingObjects(false); this.objectRender.showDrawingObjects(true);
return this; return this;
}, },
......
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