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

minor

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50521 954022d7-b5bf-4e40-9824-e11837661b57
parent c3283034
......@@ -1316,12 +1316,12 @@ asc_CCellCommentator.prototype = {
if ( bMove ) {
if ( (row < vr.r1) || (row > vr.r2) ) {
var offset = row - vr.r1 - ( vr.r2 - vr.r1 ) / 2;
var offset = row - vr.r1 - Math.round(( vr.r2 - vr.r1 ) / 2);
_this.worksheet.scrollVertical(offset);
_this.worksheet._trigger("reinitializeScrollY");
}
if ( (col < vr.c1) || (col > vr.c2) ) {
var offset = col - vr.c1 - ( vr.c2 - vr.c1 ) / 2;
var offset = col - vr.c1 - Math.round(( vr.c2 - vr.c1 ) / 2);
_this.worksheet.scrollHorizontal(offset);
_this.worksheet._trigger("reinitializeScrollX");
}
......
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