Commit c1f3073a authored by Julie Blanc's avatar Julie Blanc

[margin-notes] correction of pages without notes

parent 554fa5b1
......@@ -23,7 +23,7 @@
<body>
<h1>marginal notes</h1>
<section >
<section>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam malesuada lacus vehicula massa consequat, maximus faucibus
libero laoreet. Nullam maximus, diam consectetur tincidunt gravida, ligula orci venenatis dolor, facilisis dignissim
......
......@@ -55,7 +55,6 @@ class marginNotes extends Paged.Handler {
.pagedjs_right_page .' + classNotes + '{' + positionRight + '}';
break;
default:
console.log(notesFloat);
notePosition = '.pagedjs_left_page .' + classNotes + '{' + positionLeft + '} \
.pagedjs_right_page .' + classNotes + '{' + positionRight + '}';
}
......@@ -100,7 +99,7 @@ class marginNotes extends Paged.Handler {
let notesHeightAll = [];
if (typeof (notes) != 'undefined' && notes != null) {
if (typeof (notes) != 'undefined' && notes != null && notes.length != 0) {
for (let n = 0; n < notes.length; ++n) {
// Display notes of the page
......
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