diff --git a/src/component/contents/DraftEditorBlock.react.js b/src/component/contents/DraftEditorBlock.react.js index d78aa7003d..33088939e5 100644 --- a/src/component/contents/DraftEditorBlock.react.js +++ b/src/component/contents/DraftEditorBlock.react.js @@ -122,7 +122,8 @@ class DraftEditorBlock extends React.Component { 'blockNode is not an HTMLElement', ); const blockBottom = blockNode.offsetHeight + blockNode.offsetTop; - const scrollBottom = scrollParent.offsetHeight + scrollPosition.y; + const pOffset = scrollParent.offsetTop + scrollParent.offsetHeight; + const scrollBottom = pOffset + scrollPosition.y; scrollDelta = blockBottom - scrollBottom; if (scrollDelta > 0) { Scroll.setTop(