mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 21:06:58 +00:00
Shift to getBoundingClientRect().height
This commit is contained in:
1 parent
be0b1abe41
commit
b26ff9eb00
1 file changed
+1
-1
@@ -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++;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user