Extra horizontal space when line number 10 is created #85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Observed behavior: In the included demo, when introducing line number 10 (e.g. by entering newlines), an unnecessary horizontal scrollbar appears.
At first glance, it seems that the
min-widthof the.codemirror-contentdiv is causing this problem.One solution might be to update the
min-widthof the.codemirror-contentdiv when line numbers that change the gutter width (10, 100, 1000 etc.) are created or destroyed?Which browser are you on? Chrome and Firefox Linux seem fine.
That's already done (though by creating an invisible element, since that makes it easier to get the right width).
I'm on Chrome (70.0.3538.77) in Ubuntu Linux.
Just verified the behavior again from a fresh clone and build. It's still there.
I can observe the same behavior in Firefox (65.0.1) as well:
I'm curious, which flavor of Linux are you testing on? I wonder if it may have to do with the default monospace system font.
Ah, I'm seeing it now—yes, that was caused by a recent change. Will look into it soon.
Hooray!