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

fix empty editorState sidebar jump #66

Closed
wants to merge 1 commit into from
Closed

fix empty editorState sidebar jump #66

wants to merge 1 commit into from

Conversation

Nvveen
Copy link

@Nvveen Nvveen commented Aug 3, 2016

As soon as you click on an empty page, the calculation for the top margin for the sidemenu is done, but it comes out as -4, as there are no elements to count. This means the sidebar jumps, but not allowing the top margin to go below 0 fixes this.

@marcelometal
Copy link
Member

Hi Nvveen,
Thanks for contributing to Megadraft!

I've tested your patch and the sidebar does not return to the start position. An alternative approach to fix this problem could be to set the initial top state to -4. (I don't know if this is the best fix).

bug

@ricobl
Copy link
Contributor

ricobl commented Sep 15, 2016

Hey @Nvveen, I'm closing this PR ok? Feel free to reopen if you want to give it another try.

@ricobl ricobl closed this Sep 15, 2016
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