0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Change to getBoundingClientRect().bottom

This commit is contained in:
G.Ambatte
2022-05-09 23:39:04 +12:00
parent 7c0e702ead
commit 412ac5f331

View File

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