Commit 38278e6c authored by Alexander.Trofimov's avatar Alexander.Trofimov

add type for mobile selection info

parent 1c9116d1
...@@ -2837,7 +2837,8 @@ ...@@ -2837,7 +2837,8 @@
return null; return null;
var ws = this.getWorksheet(); var ws = this.getWorksheet();
var range = ws.getSelectedRange().bbox; var range = ws.model.selectionRange.getLast();
var type = range.type;
var l = ws.getCellLeft(range.c1, 3); var l = ws.getCellLeft(range.c1, 3);
var t = ws.getCellTop(range.r1, 3); var t = ws.getCellTop(range.r1, 3);
...@@ -2845,10 +2846,13 @@ ...@@ -2845,10 +2846,13 @@
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: asc.c_oAscSelectionType.RangeRow === type ? 0 : l - _offX,
Y: t - _offY, Y: asc.c_oAscSelectionType.RangeCol === type ? 0 : t - _offY,
W: ws.getCellLeft(range.c2, 3) - l + ws.getColumnWidth(range.c2, 3), W: asc.c_oAscSelectionType.RangeRow === type ? ws.cellsLeft :
H: ws.getCellTop(range.r2, 3) - t + ws.getRowHeight(range.r2, 3) ws.getCellLeft(range.c2, 3) - l + ws.getColumnWidth(range.c2, 3),
H: asc.c_oAscSelectionType.RangeCol === type ? ws.cellsTop :
ws.getCellTop(range.r2, 3) - t + ws.getRowHeight(range.r2, 3),
T: type
}; };
}; };
WorkbookView.prototype.ConvertXYToLogic = function (x, y) { WorkbookView.prototype.ConvertXYToLogic = function (x, y) {
......
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