Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
962937f7
Commit
962937f7
authored
Jun 23, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes
parent
6a01a600
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+8
-6
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+2
-0
No files found.
slide/Editor/Format/Presentation.js
View file @
962937f7
...
@@ -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
;
},
},
...
...
slide/Editor/Format/Slide.js
View file @
962937f7
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment