-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow preview area to scroll past end of file #1480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, If I switch scrollPastEnd
of preview in Preference, actually it is not switched.
Because you not pass config.preview.scrollEnd
as props to MarkdownPreview
in MarkdownEditor.js
.
Actually, MarkdownPreview has scrollPastEnd
as props. However, It is config.editor.scrollPastEnd
.
So, please pass config.preview.scrollPastEnd
as props to MarkdownPreview in MarkdownEditor.js
, like below.
Now
<MarkdownPreview
・・・
scrollPastEnd={config.editor.scrollPastEnd}
・・・
/>
Please
<MarkdownPreview
・・・
scrollPastEnd={config.preview.scrollPastEnd}
・・・
/>
@sosukesuzuki not sure how that option got there but I updated it to correctly use |
Thanks for your fix! |
Awesome! Thank you @allejo 😄 |
Thank you both! 😄 |
With regards to #1471... Here's a PR from a complete novice when it comes to the Electron and React world, hope it's not too bad. I'm open to learning to the correct way of doing things if you'd be so kind as to point me in the right direction. Anyhow, this worked for me