0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Shift to getBoundingClientRect().height

This commit is contained in:
G.Ambatte
2022-05-09 22:20:35 +12:00
parent be0b1abe41
commit b26ff9eb00

View File

@@ -194,7 +194,7 @@ const Editor = createClass({
let currentPage = 0;
let currentPagePosition = 0;
while (currentPagePosition < brewPosition && currentPage < pageCollection.length) {
currentPagePosition = currentPagePosition + pageCollection[currentPage].scrollHeight;
currentPagePosition = currentPagePosition + pageCollection[currentPage].getBoundingClientRect().height;
currentPage++;
};