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

Доработка клиппирования при вводе текста в шейп при условии пересечения с хидерами таблицы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53235 954022d7-b5bf-4e40-9824-e11837661b57
parent 05c44eae
...@@ -2494,16 +2494,16 @@ function GraphicOption(ws, type, delta) { ...@@ -2494,16 +2494,16 @@ function GraphicOption(ws, type, delta) {
var checker = _this.ws.objectRender.getBoundsChecker(drawingObject); var checker = _this.ws.objectRender.getBoundsChecker(drawingObject);
var coords = _this.ws.objectRender.getBoundsCheckerCoords(checker); var coords = _this.ws.objectRender.getBoundsCheckerCoords(checker);
if ( coords ) { if ( coords ) {
vr.c1 = coords.from.col; vr.c1 = Math.max(coords.from.col, vr.c1);
vr.r1 = coords.from.row; vr.r1 = Math.max(coords.from.row, vr.r1);
if ( !_this.ws.cols[coords.to.col + 1] ) if ( !_this.ws.cols[coords.to.col + 1] )
_this.ws.expandColsOnScroll(true); _this.ws.expandColsOnScroll(true);
vr.c2 = coords.to.col + 1; vr.c2 = Math.min(coords.to.col + 1, vr.c2);
if ( !_this.ws.rows[coords.to.row + 1] ) if ( !_this.ws.rows[coords.to.row + 1] )
_this.ws.expandRowsOnScroll(true); _this.ws.expandRowsOnScroll(true);
vr.r2 = coords.to.row + 1; vr.r2 = Math.min(coords.to.row + 1, vr.r2);
} }
} }
} }
......
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