Commit 962937f7 authored by SergeyLuzyanin's avatar SergeyLuzyanin

notes

parent 6a01a600
...@@ -3929,6 +3929,9 @@ CPresentation.prototype = ...@@ -3929,6 +3929,9 @@ CPresentation.prototype =
{ {
this.Slides[oldCurPage].graphicObjects.resetSelectionState(); this.Slides[oldCurPage].graphicObjects.resetSelectionState();
} }
if(!this.Notes_OnResize()){
this.DrawingDocument.Notes_OnRecalculate(this.CurPage, this.Slides[this.CurPage].NotesWidth, this.Slides[this.CurPage].getNotesHeight());
}
editor.asc_hideComments(); editor.asc_hideComments();
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
} }
...@@ -3951,15 +3954,14 @@ CPresentation.prototype = ...@@ -3951,15 +3954,14 @@ CPresentation.prototype =
if(!this.Slides[this.CurPage]){ if(!this.Slides[this.CurPage]){
return false; return false;
} }
var oCurSlide = this.Slides[this.CurPage];
var newNotesWidth = this.DrawingDocument.Notes_GetWidth(); var newNotesWidth = this.DrawingDocument.Notes_GetWidth();
if(AscFormat.fApproxEqual(this.NotesWidth, newNotesWidth)){ if(AscFormat.fApproxEqual(oCurSlide.NotesWidth, newNotesWidth)){
return false; return false;
} }
this.NotesWidth = newNotesWidth; oCurSlide.NotesWidth = newNotesWidth;
for(var i = 0; i < this.Slides.length; ++i){ oCurSlide.recalculateNotesShape();
this.Slides[i].recalculateNotesShape(); this.DrawingDocument.Notes_OnRecalculate(this.CurPage, newNotesWidth, oCurSlide.getNotesHeight());
}
this.DrawingDocument.Notes_OnRecalculate(this.CurPage, newNotesWidth, this.Slides[this.CurPage].getNotesHeight());
return true; return true;
}, },
......
...@@ -206,6 +206,8 @@ function Slide(presentation, slideLayout, slideNum) ...@@ -206,6 +206,8 @@ function Slide(presentation, slideLayout, slideNum)
this.lastLayoutMatchingName = null; this.lastLayoutMatchingName = null;
this.lastLayoutName = null; this.lastLayoutName = null;
this.NotesWidth = -10.0;
if(presentation) if(presentation)
{ {
this.Width = presentation.Width; this.Width = presentation.Width;
......
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