Commit 4c17621b authored by Oleg Korshul's avatar Oleg Korshul

cell mobile (developing...)

parent f06b9b1e
...@@ -3030,8 +3030,8 @@ ...@@ -3030,8 +3030,8 @@
var _offY = ws.cellsTop * asc_getcvt(1/*pt*/, 3/*mm*/, ws._getPPIY()); var _offY = ws.cellsTop * asc_getcvt(1/*pt*/, 3/*mm*/, ws._getPPIY());
return { return {
X: l + _offX, X: l - _offX,
Y: t + _offY, Y: t - _offY,
W: ws.getCellLeft(range.c2, 3) - l + ws.getColumnWidth(range.c2, 3), W: ws.getCellLeft(range.c2, 3) - l + ws.getColumnWidth(range.c2, 3),
H: ws.getCellTop(range.r2, 3) - t + ws.getRowHeight(range.r2, 3) H: ws.getCellTop(range.r2, 3) - t + ws.getRowHeight(range.r2, 3)
}; };
......
...@@ -13192,8 +13192,8 @@ ...@@ -13192,8 +13192,8 @@
} }
} }
xL -= this.cols[c].left; xL -= (this.cols[c].left - this.cellsLeft - this.cellsLeft);
yL -= this.rows[r].top; yL -= (this.rows[r].top - this.cellsTop - this.cellsTop);
xL *= asc_getcvt(1/*pt*/, 0/*px*/, this._getPPIX()); xL *= asc_getcvt(1/*pt*/, 0/*px*/, this._getPPIX());
yL *= asc_getcvt(1/*pt*/, 0/*px*/, this._getPPIY()); yL *= asc_getcvt(1/*pt*/, 0/*px*/, this._getPPIY());
......
...@@ -702,6 +702,9 @@ function (window, undefined) ...@@ -702,6 +702,9 @@ function (window, undefined)
if (!this.SelectEnabled) if (!this.SelectEnabled)
return; return;
if (color !== undefined)
overlay.Clear();
this.CheckSelectRects(); this.CheckSelectRects();
if (null == this.RectSelect1 || null == this.RectSelect2) if (null == this.RectSelect1 || null == this.RectSelect2)
return; return;
......
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