Commit 8b3a1601 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 28038 - Окно комментария вызывается при клике ПКМ по его иконке и...

Bug 28038 - Окно комментария вызывается при клике ПКМ по его иконке и скрывается под контекстным меню слайда

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60535 954022d7-b5bf-4e40-9824-e11837661b57
parent 9fc01a0a
...@@ -263,6 +263,7 @@ PreMoveCommentState.prototype = ...@@ -263,6 +263,7 @@ PreMoveCommentState.prototype =
var Coords = editor.WordControl.m_oDrawingDocument.ConvertCoordsToCursorWR_Comment( this.comment.x, this.comment.y, this.drawingObjects.num); var Coords = editor.WordControl.m_oDrawingDocument.ConvertCoordsToCursorWR_Comment( this.comment.x, this.comment.y, this.drawingObjects.num);
editor.sync_HideComment(); editor.sync_HideComment();
editor.sync_ShowComment(this.comment.Id, Coords.X, Coords.Y ); editor.sync_ShowComment(this.comment.Id, Coords.X, Coords.Y );
editor.WordControl.m_oLogicDocument.noShowContextMenu = true;
this.drawingObjects.clearPreTrackObjects(); this.drawingObjects.clearPreTrackObjects();
this.drawingObjects.changeCurrentState(new NullState(this.drawingObjects)); this.drawingObjects.changeCurrentState(new NullState(this.drawingObjects));
} }
......
...@@ -218,6 +218,8 @@ function CPresentation(DrawingDocument) ...@@ -218,6 +218,8 @@ function CPresentation(DrawingDocument)
this.NeedUpdateTarget = false; this.NeedUpdateTarget = false;
this.noShowContextMenu = false;
this.viewMode = false; this.viewMode = false;
// Класс для работы с поиском // Класс для работы с поиском
this.SearchInfo = this.SearchInfo =
...@@ -2358,7 +2360,7 @@ CPresentation.prototype = ...@@ -2358,7 +2360,7 @@ CPresentation.prototype =
e.ctrlKey = e.CtrlKey; e.ctrlKey = e.CtrlKey;
e.shiftKey = e.ShiftKey; e.shiftKey = e.ShiftKey;
this.Slides[this.CurPage].graphicObjects && this.Slides[this.CurPage].graphicObjects.onMouseUp(e, X, Y); this.Slides[this.CurPage].graphicObjects && this.Slides[this.CurPage].graphicObjects.onMouseUp(e, X, Y);
if(e.Button === g_mouse_button_right) if(e.Button === g_mouse_button_right && !this.noShowContextMenu)
{ {
var ContextData = new CContextMenuData(); var ContextData = new CContextMenuData();
var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( X, Y, PageIndex ); var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( X, Y, PageIndex );
...@@ -2367,6 +2369,7 @@ CPresentation.prototype = ...@@ -2367,6 +2369,7 @@ CPresentation.prototype =
ContextData.IsSlideSelect = false; ContextData.IsSlideSelect = false;
editor.sync_ContextMenuCallback( ContextData ); editor.sync_ContextMenuCallback( ContextData );
} }
this.noShowContextMenu = false;
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
}, },
......
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