diff --git a/src/component/contents/DraftEditorBlock.react.js b/src/component/contents/DraftEditorBlock.react.js index 88f8d58d1d..bdf75e401a 100644 --- a/src/component/contents/DraftEditorBlock.react.js +++ b/src/component/contents/DraftEditorBlock.react.js @@ -100,14 +100,11 @@ class DraftEditorBlock extends React.Component { if (scrollParent === window) { var nodePosition = getElementPosition(blockNode); - var nodeBottom = nodePosition.y + nodePosition.height; var viewportHeight = getViewportDimensions().height; - scrollDelta = nodeBottom - viewportHeight; + scrollDelta = nodePosition.y - viewportHeight; if (scrollDelta > 0) { - window.scrollTo( - scrollPosition.x, - scrollPosition.y + scrollDelta + SCROLL_BUFFER - ); + window.scrollTo(scrollPosition.x, + scrollPosition.y + scrollDelta + SCROLL_BUFFER * 3); } } else { var blockBottom = blockNode.offsetHeight + blockNode.offsetTop;