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:
@@ -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++;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user