Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Gap between selection highlight and vertical scrollbar #1302

Closed
peterflynn opened this issue Jul 26, 2012 · 4 comments
Closed

Gap between selection highlight and vertical scrollbar #1302

peterflynn opened this issue Jul 26, 2012 · 4 comments

Comments

@peterflynn
Copy link
Member

  1. Make the window wide enough that there's no horizontal scrollbar
  2. Select a few lines of text

Result: There's a 14px gap between the selection highlight and the vertical scrollbar. (Or the edge of the window, if vertical scrollbar isn't shown).

This happens on both Mac & Win. The gap is the same size on both platforms (and it doesn't match the v. scrollbar width on either platform, fwiw).

If the horizontal scrollbar is present, this gap goes away.

Vanilla CodeMirror (both our fork & upstream) also shows this bug, but the gap is only 5px.

@pthiess
Copy link
Contributor

pthiess commented Jul 31, 2012

Reviewed assigned to nj

@peterflynn
Copy link
Member Author

Marijn recently said "You can set padding-right: .4em on .CodeMirror-lines" to fix this.

@njx
Copy link

njx commented Feb 13, 2013

Appears fixed in master after the cmv3 merge. FBNC @peterflynn

@ghost ghost assigned peterflynn Feb 13, 2013
@peterflynn
Copy link
Member Author

Confirmed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants