Commit 8f682f0b authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

vertical ruler disable if iscanmovemargins == true

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60271 954022d7-b5bf-4e40-9824-e11837661b57
parent fbe1b6c2
...@@ -173,6 +173,7 @@ function CEditorPage(api) ...@@ -173,6 +173,7 @@ function CEditorPage(api)
this.m_oHorRuler.IsDrawAnyMarkers = false; this.m_oHorRuler.IsDrawAnyMarkers = false;
this.m_oVerRuler = new CVerRuler(); this.m_oVerRuler = new CVerRuler();
this.m_oVerRuler.IsCanMoveMargins = false;
this.m_oDrawingDocument = new CDrawingDocument(); this.m_oDrawingDocument = new CDrawingDocument();
this.m_oLogicDocument = null; this.m_oLogicDocument = null;
......
...@@ -2327,7 +2327,7 @@ function CVerRuler() ...@@ -2327,7 +2327,7 @@ function CVerRuler()
{ {
if (this.CurrentObjectType == RULER_OBJECT_TYPE_PARAGRAPH) if (this.CurrentObjectType == RULER_OBJECT_TYPE_PARAGRAPH)
{ {
if ((Math.abs(_y - this.m_dMarginTop) < 1) || (Math.abs(_y - this.m_dMarginBottom) < 1)) if (this.IsCanMoveMargins && ((Math.abs(_y - this.m_dMarginTop) < 1) || (Math.abs(_y - this.m_dMarginBottom) < 1)))
word_control.m_oDrawingDocument.SetCursorType("s-resize"); word_control.m_oDrawingDocument.SetCursorType("s-resize");
else else
word_control.m_oDrawingDocument.SetCursorType("default"); word_control.m_oDrawingDocument.SetCursorType("default");
......
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