From b26ff9eb00f9442eb4a2ff1ab0547db78513400d Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 9 May 2022 22:20:35 +1200 Subject: [PATCH] Shift to getBoundingClientRect().height --- 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 826ea6da3..a6ceb5094 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -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++; };