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

Minor fixing on note rendering

This commit is contained in:
Laurent Cozic
2017-11-21 19:47:29 +00:00
parent 48b648e656
commit 6283bf6190
6 changed files with 9 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ class NoteBodyViewer extends Component {
onResourceLoaded: () => {
this.forceUpdate();
},
paddingBottom: '3.8em', // Extra bottom padding to make it possible to scroll past the action button (so that it doesn't overlap the text)
};
const html = this.mdToHtml_.render(note ? note.body : '', this.props.webViewStyle, mdOptions);
@@ -79,7 +80,10 @@ class NoteBodyViewer extends Component {
// So we use scalesPageToFix=false on iOS along with that CSS rule.
// `baseUrl` is where the images will be loaded from. So images must use a path relative to resourceDir.
const source = { html: html, baseUrl: 'file://' + Setting.value('resourceDir') + '/' };
const source = {
html: html,
baseUrl: 'file://' + Setting.value('resourceDir') + '/',
};
return (
<View style={style}>