You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cursor over line numbers is oversized (Chrome 51) #8708
alexandrudima it seems that we've gone back to an older Electron version and that this is not currently an issue? I noticed Ben uncommitted the CSS and there don't seem to be problems. Will close for now, since I cannot reproduce in VS Code on Mac with a Retina display. Please reopen if it's still an issue.
A little background: the CSS rules with the 2x sized image was a workaround for this Chrome bug, which causes SVG cursors to be pre-rasterized (as if they were a png) before being rendered, causing pixelation on hdpi screens.
Brad Gashler (@bgashler1) we will hit this issue again eventually once we update. Note that the next jump would be to Chrome 52, not sure if that would make a difference.
Benjamin Pasero (@bpasero) Not trying to ignore the issue, but just giving my two cents: really worth being stuck in an old version of Chromium and an equally old "zero-point-x" version of Electron because of an inverted cursor?
I got a TEMPORARY solution for this issue:
change the css class of .monaco-editor .margin-view-overlays .line-numbers in file workbench.main.css
with the style below:
Emeryao (@emeryao) thanks for discovering the width and height issue. Pushing a commit that fixes this at the root of the problem.
I also want to mention to anyone else who may experience this same problem on another project that Adobe Illustrator does not save width and height attributes to SVG files by default. They only use viewbox.
I actually couldn't even get a custom image cursor to show up in Chromium version 52 until I added these attributes to the SVG files—Chromium would instead always show whatever fallback cursor I had in the CSS. For example, in the case of cursor: url('flipped-cursor-2x.svg'), crosshair; it would always use cross hair, and if I took crosshair off, it would say that I had an "invalid property value".
Activity
alexdima commentedon Jul 4, 2016
Brad Gashler (@bgashler1) For the standalone editor, I removed this style. As you added these CSS rules, maybe you know what's going on?
workaround for #8708
bgashler1 commentedon Jul 21, 2016
alexandrudima it seems that we've gone back to an older Electron version and that this is not currently an issue? I noticed Ben uncommitted the CSS and there don't seem to be problems. Will close for now, since I cannot reproduce in VS Code on Mac with a Retina display. Please reopen if it's still an issue.
A little background: the CSS rules with the 2x sized image was a workaround for this Chrome bug, which causes SVG cursors to be pre-rasterized (as if they were a png) before being rendered, causing pixelation on hdpi screens.
bpasero commentedon Aug 5, 2016
Brad Gashler (@bgashler1) we will hit this issue again eventually once we update. Note that the next jump would be to Chrome 52, not sure if that would make a difference.
workaround for #8708
bpasero commentedon Aug 7, 2016
Still happens in Chrome 52, reopening.
5 remaining items
bpasero commentedon Aug 20, 2016
No Electron update for August...
brunnopleffken commentedon Aug 23, 2016
Benjamin Pasero (@bpasero) Not trying to ignore the issue, but just giving my two cents: really worth being stuck in an old version of Chromium and an equally old "zero-point-x" version of Electron because of an inverted cursor?
Reading their changelog, you're missing a bunch of new features and improvements: https://github.com/electron/electron/releases
bpasero commentedon Aug 24, 2016
Brunno Pleffken Hosti (@brunnopleffken) this issue does not block our Electron update, but this one electron/electron#5715
Feel free to provide a PR to fix this issue for them 👍
workaround for #8708
Electron Update 1.x (#11157)
emeryao commentedon Sep 17, 2016
I got a TEMPORARY solution for this issue:
change the css class of
.monaco-editor .margin-view-overlays .line-numbersin fileworkbench.main.csswith the style below:
the key of this TEMPORARY solution is the
heightandwidthattribute of the svg tag.bgashler1 commentedon Sep 19, 2016
Emeryao (@emeryao) thanks for discovering the width and height issue. Pushing a commit that fixes this at the root of the problem.
I also want to mention to anyone else who may experience this same problem on another project that Adobe Illustrator does not save
widthandheightattributes to SVG files by default. They only use viewbox.I actually couldn't even get a custom image cursor to show up in Chromium version 52 until I added these attributes to the SVG files—Chromium would instead always show whatever fallback cursor I had in the CSS. For example, in the case of
cursor: url('flipped-cursor-2x.svg'), crosshair;it would always use cross hair, and if I took crosshair off, it would say that I had an "invalid property value".Fixes oversized "flipped" cursors #8708.
Sharper cursors align to pixel grid. Fixes #12288