Commit 2a88236f 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@60045 954022d7-b5bf-4e40-9824-e11837661b57
parent 9995905f
......@@ -1127,9 +1127,14 @@ function CDrawingDocument()
if (index == this.SlideCurrent)
{
this.m_oWordControl.Thumbnails.LockMainObjType = true;
//this.m_oWordControl.SlideDrawer.CheckSlide(this.SlideCurrent);
this.m_oWordControl.SlideDrawer.IsRecalculateSlide = true;
// так как серега посылает по сто раз - делаем такую заглушку ---------------------
this.m_oWordControl.SlideDrawer.CheckSlide(this.SlideCurrent);
this.m_oWordControl.CalculateDocumentSize(false);
this.m_oWordControl.SlideDrawer.IsRecalculateSlide = true;
// --------------------------------------------------------------------------------
this.m_oWordControl.OnScroll();
this.m_oWordControl.Thumbnails.LockMainObjType = false;
}
......@@ -1654,9 +1659,12 @@ function CDrawingDocument()
//this.m_oWordControl.OnScroll();
this.m_oWordControl.Thumbnails.LockMainObjType = true;
//this.m_oWordControl.SlideDrawer.CheckSlide(this.SlideCurrent);
this.m_oWordControl.SlideDrawer.IsRecalculateSlide = true;
// так как серега посылает по сто раз - делаем такую заглушку ---------------------
this.m_oWordControl.SlideDrawer.CheckSlide(this.SlideCurrent);
this.m_oWordControl.CalculateDocumentSize(false);
this.m_oWordControl.SlideDrawer.IsRecalculateSlide = true;
// --------------------------------------------------------------------------------
this.m_oWordControl.OnScroll();
this.m_oWordControl.Thumbnails.LockMainObjType = false;
}
......
......@@ -2615,11 +2615,13 @@ function CEditorPage(api)
context.fillRect(0, 0, _width, _height);
//context.clearRect(0, 0, _width, _height);
/*
if (this.SlideDrawer.IsRecalculateSlide == true)
{
this.SlideDrawer.CheckSlide(this.m_oDrawingDocument.SlideCurrent);
this.SlideDrawer.IsRecalculateSlide = false;
}
*/
this.SlideDrawer.DrawSlide(context, this.m_dScrollX, this.m_dScrollX_max,
this.m_dScrollY - this.SlideScrollMIN, this.m_dScrollY_max, this.m_oDrawingDocument.SlideCurrent);
......@@ -3182,6 +3184,8 @@ function CEditorPage(api)
this.StartVerticalScroll = false;
this.m_oApi.asc_fireCallback("asc_onEndPaintSlideNum");
var _bIsUpdate = (drDoc.SlideCurrent != lPageNum);
drDoc.SlideCurrent = lPageNum;
this.m_oLogicDocument.Set_CurPage(lPageNum);
......@@ -3240,7 +3244,7 @@ function CEditorPage(api)
this.Thumbnails.LockMainObjType = false;
if (this.m_oDrawingDocument.IsEmptyPresentation != _old_empty)
if (this.m_oDrawingDocument.IsEmptyPresentation != _old_empty || _bIsUpdate)
this.OnScroll();
}
......
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