Skip to content
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

Merged
merged 2 commits into from
Jan 31, 2018

Conversation

allejo
Copy link
Contributor

@allejo allejo commented Jan 30, 2018

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

@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Jan 30, 2018
Copy link
Member

@sosukesuzuki sosukesuzuki left a 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}
  ・・・
/>

@kazup01 kazup01 added awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. and removed awaiting review ❇️ Pull request is awaiting a review. labels Jan 30, 2018
@allejo
Copy link
Contributor Author

allejo commented Jan 30, 2018

@sosukesuzuki not sure how that option got there but I updated it to correctly use config.preview.scrollPastEnd

@sosukesuzuki
Copy link
Member

Thanks for your fix!
I'll approve!

@kazup01 kazup01 merged commit 2183c4b into BoostIO:master Jan 31, 2018
@kazup01
Copy link
Member

kazup01 commented Jan 31, 2018

Awesome! Thank you @allejo 😄

@kazup01 kazup01 added next release (v0.8.21) and removed awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. labels Jan 31, 2018
@allejo allejo deleted the feature-preview-scroll branch January 31, 2018 14:21
@allejo
Copy link
Contributor Author

allejo commented Jan 31, 2018

Thank you both! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants