adding extra base height fixed text clipping issue

This commit is contained in:
Nouman Tahir 2021-04-02 20:35:05 +05:00
parent ba77027f44
commit 902d913f74
2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@ export default EStyleSheet.create({
paddingHorizontal: 16,
color: '$primaryBlack',
backgroundColor: '$primaryBackgroundColor',
minHeight: 200,
textAlignVertical: 'top',
},
previewContainer: {

View File

@ -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);
};