mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 22:07:46 +03:00
setting post display scroll to have min height equals window
android web view do not support scrollEnabled property and when scroll viewport is less than scrollable height, the webview was letting the content to be scroll, this was happening for both comment and body. now, since height will always be scrollable, content of webview is set to not scrollable.
This commit is contained in:
parent
081e8db658
commit
d8cc65375c
@ -1,3 +1,4 @@
|
||||
import { Dimensions } from 'react-native';
|
||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||
|
||||
export default EStyleSheet.create({
|
||||
@ -26,6 +27,9 @@ export default EStyleSheet.create({
|
||||
backgroundColor: '$primaryBackgroundColor',
|
||||
marginBottom: 40,
|
||||
},
|
||||
scrollContent: {
|
||||
minHeight: Dimensions.get('window').height,
|
||||
},
|
||||
footer: {
|
||||
flexDirection: 'column',
|
||||
marginTop: 19,
|
||||
|
@ -204,6 +204,7 @@ const PostDisplayView = ({
|
||||
<View style={styles.container}>
|
||||
<ScrollView
|
||||
style={styles.scroll}
|
||||
contentContainerStyle={styles.scrollContent}
|
||||
onScroll={(event) => _handleOnScroll(event)}
|
||||
scrollEventThrottle={16}
|
||||
refreshControl={<RefreshControl refreshing={refreshing} onRefresh={onRefresh} />}
|
||||
|
Loading…
Reference in New Issue
Block a user