diff --git a/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java b/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java index aa2d02e..9caaf82 100644 --- a/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java +++ b/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java @@ -141,11 +141,11 @@ public boolean requestFocus(int direction, Rect previouslyFocusedRect) { } public void scrollToBottom() { - final int scrollAmount = this.getLayout().getLineTop(this.getLineCount()) - this.getHeight(); + final int scrollAmount = this.getLayout().getLineTop(this.getLineCount()) - this.getHeight() + 50; // only scroll if the user is already at the bottom. ignore otherwise if (scrollAmount > 0 && this.getSelectionStart() >= this.getText().toString().length() - 1) { - this.scrollTo(0, scrollAmount + 50); + this.scrollTo(0, scrollAmount); super.setSelection(this.length()); }