Commit 281d9bef authored by Oleg.Korshul's avatar Oleg.Korshul

Bug 27869

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60046 954022d7-b5bf-4e40-9824-e11837661b57
parent 6242ec56
...@@ -208,6 +208,8 @@ function CEditorPage(api) ...@@ -208,6 +208,8 @@ function CEditorPage(api)
this.DrawingFreeze = false; this.DrawingFreeze = false;
this.ZoomFreePageNum = -1;
this.m_bIsIE = AscBrowser.isIE; this.m_bIsIE = AscBrowser.isIE;
// сплиттеры (для табнейлов и для заметок) // сплиттеры (для табнейлов и для заметок)
...@@ -799,6 +801,7 @@ function CEditorPage(api) ...@@ -799,6 +801,7 @@ function CEditorPage(api)
var lCurPage = oWordControl.m_oDrawingDocument.SlideCurrent; var lCurPage = oWordControl.m_oDrawingDocument.SlideCurrent;
this.GoToPage(lCurPage); this.GoToPage(lCurPage);
this.ZoomFreePageNum = lCurPage;
if (-1 != lCurPage) if (-1 != lCurPage)
{ {
...@@ -810,6 +813,8 @@ function CEditorPage(api) ...@@ -810,6 +813,8 @@ function CEditorPage(api)
var lPosition = parseInt(dPosition * oWordControl.m_oScrollVerApi.getMaxScrolledY()); var lPosition = parseInt(dPosition * oWordControl.m_oScrollVerApi.getMaxScrolledY());
oWordControl.m_oScrollVerApi.scrollToY(lPosition); oWordControl.m_oScrollVerApi.scrollToY(lPosition);
this.ZoomFreePageNum = -1;
oWordControl.m_oApi.sync_zoomChangeCallback(this.m_nZoomValue, type); oWordControl.m_oApi.sync_zoomChangeCallback(this.m_nZoomValue, type);
oWordControl.m_bIsUpdateTargetNoAttack = true; oWordControl.m_bIsUpdateTargetNoAttack = true;
oWordControl.m_bIsRePaintOnScroll = true; oWordControl.m_bIsRePaintOnScroll = true;
...@@ -2014,6 +2019,12 @@ function CEditorPage(api) ...@@ -2014,6 +2019,12 @@ function CEditorPage(api)
} }
var lNumSlide = ((scrollPositionY / this.m_dDocumentPageHeight) + 0.01) >> 0; // 0.01 - ошибка округления!! var lNumSlide = ((scrollPositionY / this.m_dDocumentPageHeight) + 0.01) >> 0; // 0.01 - ошибка округления!!
var _can_change_slide = true;
if (-1 != this.ZoomFreePageNum && this.ZoomFreePageNum == this.m_oDrawingDocument.SlideCurrent)
_can_change_slide = false;
if (_can_change_slide)
{
if (lNumSlide != this.m_oDrawingDocument.SlideCurrent) if (lNumSlide != this.m_oDrawingDocument.SlideCurrent)
{ {
if (this.IsGoToPageMAXPosition) if (this.IsGoToPageMAXPosition)
...@@ -2033,6 +2044,11 @@ function CEditorPage(api) ...@@ -2033,6 +2044,11 @@ function CEditorPage(api)
} }
} }
else else
{
this.GoToPage(this.ZoomFreePageNum);
}
}
else
{ {
if (this.StartVerticalScroll) if (this.StartVerticalScroll)
return; return;
......
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