Skip to content

Maintain Markdown Preview Scroll Position on Window Resize - #18760

Merged
Matt Bierner (mjbvz) merged 2 commits into
microsoft:masterfrom
mjbvz:maintain-md-position-on-resize
Jan 18, 2017
Merged

Matt Bierner (mjbvz) merged 2 commits into
microsoft:masterfrom
mjbvz:maintain-md-position-on-resize

Conversation

@mjbvz

Copy link
Copy Markdown
Contributor

Bug
Currently, when resizing an editor with a markdown preview, the preview shifts all around.

jan-18-2017 14-46-26

Fix
Add some custom js to handle this better. The js maintains the relative offset when resizing the window.

jan-18-2017 14-49-52

This simple solution isn't perfect because page reflows can cause the elements to shift around relative on the page. I find it better than the current behavior though, and will investigate further improvements with the scrolling sync work.

Matt Bierner added 2 commits January 18, 2017 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants