1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Revert "Mobile: Resolves #2286: Always show scrollbar in editor mode (#2594)"

This reverts commit 91d864bded.

To try to fix this: https://github.com/laurent22/joplin/issues/2856
This commit is contained in:
Laurent Cozic 2020-03-23 09:35:54 +00:00
parent c370358bd1
commit 8d045f0c96

View File

@ -1,5 +1,5 @@
const React = require('react'); const React = require('react');
const { Platform, Clipboard, Keyboard, View, TextInput, StyleSheet, Linking, Image, Share, ScrollView } = require('react-native'); const { Platform, Clipboard, Keyboard, View, TextInput, StyleSheet, Linking, Image, Share } = require('react-native');
const { connect } = require('react-redux'); const { connect } = require('react-redux');
const { uuid } = require('lib/uuid.js'); const { uuid } = require('lib/uuid.js');
const RNFS = require('react-native-fs'); const RNFS = require('react-native-fs');
@ -865,11 +865,7 @@ class NoteScreenComponent extends BaseScreenComponent {
// Note: blurOnSubmit is necessary to get multiline to work. // Note: blurOnSubmit is necessary to get multiline to work.
// See https://github.com/facebook/react-native/issues/12717#issuecomment-327001997 // See https://github.com/facebook/react-native/issues/12717#issuecomment-327001997
bodyComponent = ( 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} />;
<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 = () => { const renderActionButton = () => {