From 412ac5f331a5c5a1841d2266765ff89015f7f0ac Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 9 May 2022 23:39:04 +1200 Subject: [PATCH] Change to getBoundingClientRect().bottom --- client/homebrew/editor/editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index 9ecacb48..d557d40b 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -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++; };