Commit c0afee0c 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@51587 954022d7-b5bf-4e40-9824-e11837661b57
parent a4fd0758
......@@ -2506,6 +2506,9 @@ function CDemonstrationManager(htmlpage)
this.HtmlPage = htmlpage;
this.Transition = new CTransitionAnimation(htmlpage);
this.DivWidth = 0;
this.DivHeight = 0;
this.MainDivId = "";
this.DemonstrationDiv = null;
this.DivEndPresentation = null;
......@@ -2707,6 +2710,9 @@ function CDemonstrationManager(htmlpage)
var _width = this.DemonstrationDiv.clientWidth;
var _height = this.DemonstrationDiv.clientHeight;
this.DivWidth = _width;
this.DivHeight = _height;
this.Mode = true;
this.Canvas = document.createElement('canvas');
this.Canvas.setAttribute("style", "position:absolute;margin:0;padding:0;left:0px;top:0px;width:100%;height:100%;zIndex:2;background-color:#000000;");
......@@ -2731,6 +2737,9 @@ function CDemonstrationManager(htmlpage)
if (false === is_play_mode)
this.IsPlayMode = false;
this.SlideIndexes[0] = -1;
this.SlideIndexes[1] = -1;
this.StartSlide(true, true);
}
......@@ -3108,5 +3117,33 @@ function CDemonstrationManager(htmlpage)
this.Resize = function()
{
if (!this.Mode)
return;
var _width = this.DemonstrationDiv.clientWidth;
var _height = this.DemonstrationDiv.clientHeight;
if (_width == this.DivWidth && _height == this.DivHeight)
return;
this.DivWidth = _width;
this.DivHeight = _height;
this.Canvas.width = _width;
this.Canvas.height = _height;
this.Transition.CalculateRectDemonstration();
this.SlideIndexes[0] = -1;
this.SlideIndexes[1] = -1;
if (this.Overlay)
{
this.Overlay.width = this.Canvas.width;
this.Overlay.height = this.Canvas.height;
}
if (this.SlideNum < this.SlidesCount)
this.StartSlide(false, false);
}
}
\ No newline at end of file
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