Commit 88718a9f authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47945 954022d7-b5bf-4e40-9824-e11837661b57
parent 7f3b7bca
...@@ -1104,7 +1104,7 @@ function CEditorPage(api) ...@@ -1104,7 +1104,7 @@ function CEditorPage(api)
var _x = global_mouseEvent.X - oWordControl.X; var _x = global_mouseEvent.X - oWordControl.X;
var _y = global_mouseEvent.Y - oWordControl.Y; var _y = global_mouseEvent.Y - oWordControl.Y;
if (_x >= x1 && _x <= x2 && _y >= 0 && _y <= oWordControl.Height) if (_x >= x1 && _x <= x2 && _y >= 0 && _y <= oWordControl.Height && oThis.Splitter1Pos != 0)
{ {
oWordControl.m_oBody.HtmlElement.style.cursor = "w-resize"; oWordControl.m_oBody.HtmlElement.style.cursor = "w-resize";
oWordControl.createSplitterDiv(true); oWordControl.createSplitterDiv(true);
...@@ -1201,11 +1201,22 @@ function CEditorPage(api) ...@@ -1201,11 +1201,22 @@ function CEditorPage(api)
if (!this.IsSupportNotes) if (!this.IsSupportNotes)
this.Splitter2Pos = 0; this.Splitter2Pos = 0;
if (0 == this.Splitter1Pos)
{
this.m_oMainContent.Bounds.L = 0;
this.m_oMainContent.Bounds.B = this.Splitter2Pos + 1.5;
this.m_oNotesContainer.Bounds.L = 0;
this.m_oNotesContainer.Bounds.AbsH = this.Splitter2Pos;
}
else
{
this.m_oMainContent.Bounds.L = this.Splitter1Pos + 1.5; this.m_oMainContent.Bounds.L = this.Splitter1Pos + 1.5;
this.m_oMainContent.Bounds.B = this.Splitter2Pos + 1.5; this.m_oMainContent.Bounds.B = this.Splitter2Pos + 1.5;
this.m_oNotesContainer.Bounds.L = this.Splitter1Pos + 1.5; this.m_oNotesContainer.Bounds.L = this.Splitter1Pos + 1.5;
this.m_oNotesContainer.Bounds.AbsH = this.Splitter2Pos; this.m_oNotesContainer.Bounds.AbsH = this.Splitter2Pos;
}
this.OnResize2(true); this.OnResize2(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