Skip to content

Commit cb56ccf

Browse files
committed
Fix: Error on opening file in OpenComic
1 parent 27f63ec commit cb56ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/reading.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ var rightSize = {}; // Right content size
536536

537537
function calculateView()
538538
{
539-
let contentRight = template.contentRight().get(0);
539+
let contentRight = template._contentRight();
540540

541541
let content = contentRight.firstElementChild;
542542
let rect = content.getBoundingClientRect();
@@ -554,7 +554,7 @@ function calculateView()
554554
{
555555
dom.this(contentRight).find('.reading-body > div, .reading-lens > div > div', true).css({
556556
width: (rect.width * indexNum)+'px',
557-
height: rect.height,
557+
height: rect.height+'px',
558558
flexDirection: '',
559559
});
560560
}

0 commit comments

Comments
 (0)