Commit d8920654 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

cell rclick

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48377 954022d7-b5bf-4e40-9824-e11837661b57
parent ed3baa3a
......@@ -2399,7 +2399,7 @@ function DrawingObjects() {
}
_t.setActive = function() {
worksheet._moveActiveCellToXY(_t.getVisibleLeftOffset(true) + 1, _t.getVisibleTopOffset(true) + 1);
worksheet._moveActiveCellToXY( mmToPx(_t.graphicObject.x + 1), mmToPx(_t.graphicObject.y + 1) );
}
// GraphicObject: x, y, extX, extY
......
......@@ -5889,8 +5889,8 @@
changeSelectionStartPointRightClick: function (x, y) {
// Выделяем объект
var cursorInfo = this.objectRender.checkCursorDrawingObject(x, y);
if ( !cursorInfo )
var graphicCursorInfo = this.objectRender.checkCursorDrawingObject(x, y);
if ( !graphicCursorInfo )
this.objectRender.unselectDrawingObjects();
var ar = this.activeRange;
......@@ -5944,17 +5944,15 @@
// Не попали в выделение (меняем первую точку)
this.cleanSelection();
this._moveActiveCellToXY(x, y);
// Нет селекта при клике по drawing-объекту
if ( (ar.type !== c_oAscSelectionType.RangeImage) && (ar.type !== c_oAscSelectionType.RangeShape) && (ar.type !== c_oAscSelectionType.RangeChart) ) {
this.objectRender.unselectDrawingObjects();
if ( !graphicCursorInfo )
this._drawSelection();
}
this._trigger("selectionNameChanged", this.getSelectionName(/*bRangeText*/false));
this._trigger("selectionChanged", this.getSelectionInfo());
return false;
}
if ( !graphicCursorInfo )
this._drawSelection();
return true;
},
......
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