Commit 1a0fc459 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete unused _updateFormulaSelectorPosition

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56347 954022d7-b5bf-4e40-9824-e11837661b57
parent 6844970c
...@@ -1571,44 +1571,6 @@ ...@@ -1571,44 +1571,6 @@
return this.objAutoComplete[str] = arrResult; return this.objAutoComplete[str] = arrResult;
}; };
CellEditor.prototype._updateFormulaSelectorPosition = function() {
var selector = document.getElementById("formulaSelector");
if ( selector ) {
var api = asc["editor"];
if ( api.wb ) {
var ws = api.wb.getWorksheet();
if ( ws ) {
var editedCol = ws.getSelectedColumnIndex();
var editedRow = ws.getSelectedRowIndex() + 1;
for (var n = 0; n < ws.drawingArea.frozenPlaces.length; n++) {
var frozenPlace = ws.drawingArea.frozenPlaces[n];
if ( !frozenPlace.isCellInside({ col: editedCol, row: editedRow }) )
continue;
var fv = frozenPlace.getFirstVisible();
if ( (editedCol < fv.col) || (editedRow < fv.row) ) {
selector.style["display"] = "none";
return;
}
else
selector.style["display"] = "";
var y = ws.getCellTop(editedRow, 0) + frozenPlace.getVerticalScroll() - ws.getCellTop(0, 0);
var x = ws.getCellLeft(editedCol, 0) + frozenPlace.getHorizontalScroll() - ws.getCellLeft(0, 0);
var canvasWidget = $("#" + api.HtmlElementName);
if ( canvasWidget ) {
selector.style["top"] = (y + canvasWidget.offset().top) + "px";
selector.style["left"] = (x + canvasWidget.offset().left) + "px";
}
return;
}
}
}
}
};
// Event handlers // Event handlers
/** @param event {KeyboardEvent} */ /** @param event {KeyboardEvent} */
......
...@@ -5292,8 +5292,6 @@ ...@@ -5292,8 +5292,6 @@
this._drawCells(/*drawingCtx*/undefined, range); this._drawCells(/*drawingCtx*/undefined, range);
this._drawCellsBorders(/*drawingCtx*/undefined, range); this._drawCellsBorders(/*drawingCtx*/undefined, range);
this._drawAutoF(range, offsetX, offsetY); this._drawAutoF(range, offsetX, offsetY);
if ( editor )
editor._updateFormulaSelectorPosition();
if (0 < cFrozen) { if (0 < cFrozen) {
range.c1 = 0; range.c1 = 0;
range.c2 = cFrozen - 1; range.c2 = cFrozen - 1;
...@@ -5393,8 +5391,6 @@ ...@@ -5393,8 +5391,6 @@
this._drawCells(/*drawingCtx*/undefined, range); this._drawCells(/*drawingCtx*/undefined, range);
this._drawCellsBorders(/*drawingCtx*/undefined, range); this._drawCellsBorders(/*drawingCtx*/undefined, range);
this._drawAutoF(range, offsetX, offsetY); this._drawAutoF(range, offsetX, offsetY);
if ( editor )
editor._updateFormulaSelectorPosition();
if (rFrozen) { if (rFrozen) {
range.r1 = 0; range.r1 = 0;
range.r2 = rFrozen - 1; range.r2 = rFrozen - 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