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++; };