mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
* Mobile: show scrollbar in editor mode * always show the scrollbar
This commit is contained in:
parent
339d7d16c7
commit
91d864bded
@ -1,5 +1,5 @@
|
||||
const React = require('react');
|
||||
const { Platform, Clipboard, Keyboard, View, TextInput, StyleSheet, Linking, Image, Share } = require('react-native');
|
||||
const { Platform, Clipboard, Keyboard, View, TextInput, StyleSheet, Linking, Image, Share, ScrollView } = require('react-native');
|
||||
const { connect } = require('react-redux');
|
||||
const { uuid } = require('lib/uuid.js');
|
||||
const RNFS = require('react-native-fs');
|
||||
@ -865,7 +865,11 @@ class NoteScreenComponent extends BaseScreenComponent {
|
||||
|
||||
// Note: blurOnSubmit is necessary to get multiline to work.
|
||||
// See https://github.com/facebook/react-native/issues/12717#issuecomment-327001997
|
||||
bodyComponent = <TextInput autoCapitalize="sentences" style={this.styles().bodyTextInput} ref="noteBodyTextField" multiline={true} value={note.body} onChangeText={text => this.body_changeText(text)} blurOnSubmit={false} selectionColor={theme.textSelectionColor} placeholder={_('Add body')} placeholderTextColor={theme.colorFaded} />;
|
||||
bodyComponent = (
|
||||
<ScrollView persistentScrollbar>
|
||||
<TextInput autoCapitalize="sentences" style={this.styles().bodyTextInput} ref="noteBodyTextField" multiline={true} value={note.body} onChangeText={text => this.body_changeText(text)} blurOnSubmit={false} selectionColor={theme.textSelectionColor} placeholder={_('Add body')} placeholderTextColor={theme.colorFaded} />
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
const renderActionButton = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user