Commit 4f15e458 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил баг http://bugzserver/show_bug.cgi?id=24505

При перемещении диапазона не обновлялась стартовая ячейка.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56468 954022d7-b5bf-4e40-9824-e11837661b57
parent 2af6a02a
......@@ -7518,6 +7518,7 @@
this.activeMoveRange.r1 = 0;
}
this.activeMoveRange.r2 += rowDelta;
this.activeMoveRange._updateAdditionalData();
// Увеличиваем, если выходим за область видимости // Critical Bug 17413
while (!this.cols[this.activeMoveRange.c2]) {
......@@ -7541,27 +7542,23 @@
while ( this._isColDrawnPartially( this.activeMoveRange.c2, this.visibleRange.c1 + d.deltaX) ) {++d.deltaX;}
while ( this._isRowDrawnPartially( this.activeMoveRange.r2, this.visibleRange.r1 + d.deltaY) ) {++d.deltaY;}*/
if ( y <= this.cellsTop + this.height_2px ){
if (y <= this.cellsTop + this.height_2px ){
d.deltaY = -1;
}else if ( y >= this.drawingCtx.getHeight() - this.height_2px ){
}else if ( y >= this.drawingCtx.getHeight() - this.height_2px)
d.deltaY = 1;
}
if ( x <= this.cellsLeft + this.width_2px ){
if (x <= this.cellsLeft + this.width_2px ){
d.deltaX = -1;
}else if ( x >= this.drawingCtx.getWidth() - this.width_2px ){
}else if ( x >= this.drawingCtx.getWidth() - this.width_2px)
d.deltaX = 1;
}
this.model.workbook.handlers.trigger("asc_onHideComment");
if( this.activeMoveRange.type == c_oAscSelectionType.RangeRow ){
if (this.activeMoveRange.type === c_oAscSelectionType.RangeRow)
d.deltaX = 0;
}
if( this.activeMoveRange.type == c_oAscSelectionType.RangeCol ){
else if (this.activeMoveRange.type === c_oAscSelectionType.RangeCol)
d.deltaY = 0;
}
if( this.activeMoveRange.type == c_oAscSelectionType.RangeMax ){
else if (this.activeMoveRange.type === c_oAscSelectionType.RangeMax) {
d.deltaX = 0;
d.deltaY = 0;
}
......
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