Commit ec622b05 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@48636 954022d7-b5bf-4e40-9824-e11837661b57
parent 2be6e99c
......@@ -2230,10 +2230,15 @@ function DrawingObjects() {
function restoreSheetArea(checker) {
var topRow = worksheet._findRowUnderCursor( mmToPt(checker.Bounds.min_y), true).row;
var leftCol = worksheet._findColUnderCursor( mmToPt(checker.Bounds.min_x), true).col;
var bottomRow = worksheet._findRowUnderCursor( mmToPt(checker.Bounds.max_y), true).row;
var rightcol = worksheet._findColUnderCursor( mmToPt(checker.Bounds.max_x), true).col;
var foundRow = worksheet._findRowUnderCursor( mmToPt(checker.Bounds.min_y + pxToMm(scrollOffset.y)), true);
var topRow = foundRow ? foundRow.row : 0;
var foundCol = worksheet._findColUnderCursor( mmToPt(checker.Bounds.min_x + pxToMm(scrollOffset.x)), true);
var leftCol = foundCol ? foundCol.col : 0;
foundRow = worksheet._findRowUnderCursor( mmToPt(checker.Bounds.max_y + pxToMm(scrollOffset.y)), true);
var bottomRow = foundRow ? foundRow.row : 0;
foundCol = worksheet._findColUnderCursor( mmToPt(checker.Bounds.max_x + pxToMm(scrollOffset.x)), true);
var rightcol = foundCol ? foundCol.col : 0;
var r_ = asc_Range( leftCol, topRow, rightcol, bottomRow );
worksheet._drawGrid( undefined, r_);
......
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