1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Various changes

This commit is contained in:
Laurent Cozic
2017-09-10 17:57:06 +01:00
parent 7aaf4fb491
commit 8e54404d28
7 changed files with 102 additions and 12 deletions

View File

@@ -181,7 +181,7 @@ class NoteBodyViewer extends Component {
setTimeout(() => {
if (!this.isMounted_) return;
this.setState({ webViewLoaded: true });
}, 200);
}, 100);
}
render() {
@@ -191,7 +191,7 @@ class NoteBodyViewer extends Component {
const html = this.markdownToHtml(note ? note.body : '', this.props.webViewStyle);
let webViewStyle = {}
if (!this.state.webViewLoaded) webViewStyle.display = 'none';
webViewStyle.opacity = this.state.webViewLoaded ? 1 : 0.01;
return (
<View style={style}>