Commit 41dad1d7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил расчет координат относительно листа

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56206 954022d7-b5bf-4e40-9824-e11837661b57
parent ed7e6827
......@@ -5359,7 +5359,7 @@
while (c < this.cols.length) {
tmpCol = this.cols[c];
if (x <= tmpCol.left + tmpCol.width) {
result.col = c - 1;
result.col = c;
break;
}
++c;
......@@ -5367,14 +5367,14 @@
while (r < this.rows.length) {
tmpRow = this.rows[r];
if (y <= tmpRow.top + tmpRow.height) {
result.row = r - 1;
result.row = r;
break;
}
++r;
}
result.colOff = this.cols[result.col].left - x;
result.rowOff = this.rows[result.row].top - y;
result.colOff = x - this.cols[result.col].left;
result.rowOff = y - this.rows[result.row].top;
return result;
};
......
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