Commit f7aec214 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=25157 - Появление автофильтра в...

http://bugzserver/show_bug.cgi?id=25157 -  Появление автофильтра в форматированной таблице без автофильтра при открытии XLXS файла и ошибки в консоли при его использовании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57103 954022d7-b5bf-4e40-9824-e11837661b57
parent 96388eba
......@@ -1182,12 +1182,12 @@ var gUndoInsDelCellsFlag = true;
width = width*(rowHeight/height);
height = rowHeight;
}
var x1 = ws.cols[col].left + ws.cols[col].width - width - offsetX - 0.5;
var y1 = ws.rows[row].top + ws.rows[row].height - height - offsetY - 0.5;
var x1 = ws.cols[col].left + ws.cols[col].width - width /*- offsetX*/ - 0.5;
var y1 = ws.rows[row].top + ws.rows[row].height - height /*- offsetY*/ - 0.5;
buttons[i].x = x1;
buttons[i].y = y1;
buttons[i].x1 = ws.cols[col].left - offsetX;
buttons[i].y1 = ws.rows[row].top - offsetY;
buttons[i].x1 = ws.cols[col].left/* - offsetX*/;
buttons[i].y1 = ws.rows[row].top /*- offsetY*/;
buttons[i].width = ws.cols[col].width;
buttons[i].height = ws.rows[row].height;
......@@ -1257,7 +1257,7 @@ var gUndoInsDelCellsFlag = true;
col: col
};
if (buttons[i].x1 >= ws.cols[0].left && buttons[i].y1 >= ws.rows[0].top)
this._drawButton(x1,y1,filOptions);
this._drawButton(x1 - offsetX,y1 - offsetY,filOptions);
}
}
}
......@@ -2547,7 +2547,7 @@ var gUndoInsDelCellsFlag = true;
if(currentFilter[isCurFilter])
{
currentFilter[isCurFilter].ColId = filtersOp[1];
currentFilter[isCurFilter].Filters = {};
currentFilter[isCurFilter].Filters = new Filters();
}
else
{
......
......@@ -5809,7 +5809,7 @@
var xWithOffset = x + offsetX;
var yWithOffset = y + offsetY;
var autoFilterInfo = this.autoFilters.checkCursor(x, y);
var autoFilterInfo = this.autoFilters.checkCursor(xWithOffset, yWithOffset);
if (autoFilterInfo && !isViewerMode)
return {cursor: kCurAutoFilter, target: c_oTargetType.FilterObject, col: -1, row: -1, idFilter: autoFilterInfo.id};
......
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