Commit 7482e8ba 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@56233 954022d7-b5bf-4e40-9824-e11837661b57
parent edec7804
...@@ -5752,10 +5752,6 @@ ...@@ -5752,10 +5752,6 @@
}; };
} }
var autoFilterInfo = this.autoFilters.checkCursor(x, y);
if (autoFilterInfo)
return {cursor: kCurAutoFilter, target: c_oTargetType.FilterObject, col: -1, row: -1, idFilter: autoFilterInfo.id};
offsetX = this.cols[this.visibleRange.c1].left - this.cellsLeft; offsetX = this.cols[this.visibleRange.c1].left - this.cellsLeft;
offsetY = this.rows[this.visibleRange.r1].top - this.cellsTop; offsetY = this.rows[this.visibleRange.r1].top - this.cellsTop;
if (this.topLeftFrozenCell) { if (this.topLeftFrozenCell) {
...@@ -5775,6 +5771,13 @@ ...@@ -5775,6 +5771,13 @@
if (oFormulaOrChartCursor) if (oFormulaOrChartCursor)
return oFormulaOrChartCursor; return oFormulaOrChartCursor;
var xWithOffset = x + offsetX;
var yWithOffset = y + offsetY;
var autoFilterInfo = this.autoFilters.checkCursor(xWithOffset, yWithOffset);
if (autoFilterInfo)
return {cursor: kCurAutoFilter, target: c_oTargetType.FilterObject, col: -1, row: -1, idFilter: autoFilterInfo.id};
isSelGraphicObject = this.objectRender.selectedGraphicObjectsExists(); isSelGraphicObject = this.objectRender.selectedGraphicObjectsExists();
if (!isViewerMode && !isSelGraphicObject) { if (!isViewerMode && !isSelGraphicObject) {
// Эпсилон для fillHandle // Эпсилон для fillHandle
...@@ -5787,8 +5790,6 @@ ...@@ -5787,8 +5790,6 @@
} }
// Навели на выделение // Навели на выделение
var xWithOffset = x + offsetX;
var yWithOffset = y + offsetY;
if (this._isCursorOnSelectionBorder(ar, this.visibleRange, xWithOffset, yWithOffset)) if (this._isCursorOnSelectionBorder(ar, this.visibleRange, xWithOffset, yWithOffset))
return {cursor: kCurMove, target: c_oTargetType.MoveRange, col: -1, row: -1}; return {cursor: kCurMove, target: c_oTargetType.MoveRange, col: -1, row: -1};
} }
......
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