Commit dda6cb95 authored by GoshaZotov's avatar GoshaZotov

return old getSpecialPasteCoords function

parent 75c18cec
......@@ -10026,8 +10026,38 @@
this.handlers.trigger("showSpecialPasteOptions", specialPasteShowOptions);
}
};
WorksheetView.prototype.getSpecialPasteCoords = function(range, isVisible)
{
var disableCoords = function()
{
cellCoord._x = -1;
cellCoord._y = -1;
};
//TODO пересмотреть когда иконка вылезает за пределы области видимости
var cellCoord = this.getCellCoord(range.c2, range.r2);
if(!isVisible || window['AscCommon'].g_clipboardBase.specialPasteButtonProps.shapeId)
{
disableCoords();
}
else
{
var visibleCellCoord = this.getCellCoord(this.visibleRange.c2, this.visibleRange.r2);
var offset = 3;
var widthIcon = 30 + offset;
var heightIcon = 22 + offset;
if(cellCoord._x + widthIcon > visibleCellCoord._x || cellCoord._y + heightIcon > visibleCellCoord._y)
{
disableCoords();
}
}
return cellCoord;
};
/*WorksheetView.prototype.getSpecialPasteCoords = function(range, isVisible)
{
var disableCoords = function()
{
......@@ -10077,7 +10107,7 @@
}
return cellCoord;
};
};*/
// Залочена ли панель для закрепления
WorksheetView.prototype._isLockedFrozenPane = function ( callback ) {
......
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