Skip to content

Commit

Permalink
Fixed page rendering
Browse files Browse the repository at this point in the history
- Fixed document pages being nested and not rendering correctly
  • Loading branch information
josemmo committed Dec 27, 2020
1 parent 923918a commit b6d9fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function prepareDom(pages) {
var navHtml = '', previewHtml = '';
for (var i=1; i<=pages; i++) {
navHtml += '<a class="thumbnail" data-page="' + i + '"><canvas /></a>';
previewHtml += '<div class="page" data-page="' + i + '" />';
previewHtml += '<div class="page" data-page="' + i + '"></div>';
}
$navigation.html(navHtml);
$navigation.find('[data-page=1]').addClass('selected');
Expand Down

0 comments on commit b6d9fa2

Please sign in to comment.