From 902d913f74b997876c6899c985972b629cd07bdd Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Fri, 2 Apr 2021 20:35:05 +0500 Subject: [PATCH] adding extra base height fixed text clipping issue --- src/components/markdownEditor/view/markdownEditorStyles.js | 1 - src/components/markdownEditor/view/markdownEditorView.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/markdownEditor/view/markdownEditorStyles.js b/src/components/markdownEditor/view/markdownEditorStyles.js index 193e80ba3..738f20c95 100644 --- a/src/components/markdownEditor/view/markdownEditorStyles.js +++ b/src/components/markdownEditor/view/markdownEditorStyles.js @@ -14,7 +14,6 @@ export default EStyleSheet.create({ paddingHorizontal: 16, color: '$primaryBlack', backgroundColor: '$primaryBackgroundColor', - minHeight: 200, textAlignVertical: 'top', }, previewContainer: { diff --git a/src/components/markdownEditor/view/markdownEditorView.js b/src/components/markdownEditor/view/markdownEditorView.js index cb4fee235..6d6f31a8c 100644 --- a/src/components/markdownEditor/view/markdownEditorView.js +++ b/src/components/markdownEditor/view/markdownEditorView.js @@ -41,7 +41,7 @@ import { ThemeContainer } from '../../../containers'; import styles from './markdownEditorStyles'; import applySnippet from './formats/applySnippet'; -const MIN_BODY_INPUT_HEIGHT = 200; +const MIN_BODY_INPUT_HEIGHT = 300; const MarkdownEditorView = ({ draftBody, @@ -165,7 +165,7 @@ const MarkdownEditorView = ({ }; const _handleOnContentSizeChange = async (event) => { - const height = Math.max(MIN_BODY_INPUT_HEIGHT, event.nativeEvent.contentSize.height + 30); + const height = Math.max(MIN_BODY_INPUT_HEIGHT, event.nativeEvent.contentSize.height + 100); setBodyInputHeight(height); };