Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When editing, writing enough to require a scrollbar causes a slight rewrapping of all text #162
Describe the bug
When I write enough to need a scrollbar on the edit view, the content I'm writing gets rewrapped slightly. Not a big deal, but distracting when it happens.
(There screenshots were created on a fairly narrow window, so that they weren't enormously wide, but the same issue occurs when the window is fullscreen on my 1920px wide screen and there is a gulf of empty space between the text and the scrollbar.)
Steps to reproduce (if necessary)
Steps to reproduce the behavior:
The text area should have been unaffected by the scrollbar appearing.
Google Chrome Version 76.0.3809.87 (Official Build) (64-bit) on Ubuntu 19.10
Version or last commit: 0.10
Thanks for the input, @OddBloke. I think this is default Chrome (and probably other browsers) behavior -- hiding the scrollbar unless it's necessary.
Without any research, I'd assume we could add some custom-styled scrollbars to address this? Maybe that would force them to always show? If that's the solution, I'd just have concerns with accessibility and OSes (like macOS) that have system settings for hiding scrollbars.
I'm not a front-end engineer at all, I'm afraid, so I won't have much useful input on a solution here.
To clarify, I do like the scrollbar only appearing once it's needed, I think that makes the experience much cleaner. It's the fact that its appearance causes text rewrapping that bugs me.
Ideally, I'd like to stay away from tons of extra client code just to avoid something relatively small.
Working around this is probably going to be much more effort than we can handle right now, so I'm going to mark this as "won't fix" for now. Perhaps with a future alternative editor offered within WF, or alternative external publishing clients, or better CSS, we might be able to address it in the future.