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

Desktop: Prevent lines from shifting in Markdown Editor when Scrollbar appears #4110

Merged
merged 2 commits into from
Nov 19, 2020

Conversation

CalebJohn
Copy link
Collaborator

This is done by adding a constant padding to the right hand side of the codemirror editor.

Before long lines could get pushed around when the scroll bar appeared.
Compare
image
->
image

And the new behavior
image
->
image

This prevents the editor size from changing when the scrollbar appears
@laurent22
Copy link
Owner

Looks good, thanks @CalebJohn

@laurent22 laurent22 merged commit 116413e into laurent22:dev Nov 19, 2020
@CalebJohn CalebJohn deleted the codemirror-scrollbar branch November 19, 2020 17:06
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.

2 participants