mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
adding extra base height fixed text clipping issue
This commit is contained in:
parent
ba77027f44
commit
902d913f74
@ -14,7 +14,6 @@ export default EStyleSheet.create({
|
||||
paddingHorizontal: 16,
|
||||
color: '$primaryBlack',
|
||||
backgroundColor: '$primaryBackgroundColor',
|
||||
minHeight: 200,
|
||||
textAlignVertical: 'top',
|
||||
},
|
||||
previewContainer: {
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user