-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cursor over line numbers is oversized (Chrome 51) #8708
Comments
@bgashler1 For the standalone editor, I removed this style. As you added these CSS rules, maybe you know what's going on? |
@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. |
@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. |
Still happens in Chrome 52, reopening. |
No Electron update for August... |
@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 |
@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 👍 |
* use electron 1.3.4 * ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE * OSS input * update electron.d.ts * workaround for #8708 * bump oniguruma and chokidar with custom fsevents * build with appveyor config from master * oops, still use ELECTRON_RUN_AS_NODE * use electron 1.3.5 * optional fsevents * add cat.exe to workaround output issues * use cat for tests * remove some now obsolete ELECTRON_NO_ATTACH_CONSOLE * also pipe output to cat for code.sh on windows * unset ELECTRON_RUN_AS_NODE for appveyor * fix tfs builds? * fix build * fix build? * use cat only when running tests locally
I got a TEMPORARY solution for this issue: cursor: -webkit-image-set(url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='45' widht='30' viewBox='0 0 15 21'%3E%3Cpath fill='%23fff' stroke='%23000' d='M14.5 1.2L1.9 13.8h5.2l-2.6 5.3 3.2 1 2.6-5.2 4.2 3.1z'/%3E%3C/svg%3E") 2x) 30 0,default; the key of this TEMPORARY solution is the |
@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 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 |
Adds missing height and width attributes to the svg cursors that are required for Chrome to render them properly.
Seems like the same issue as microsoft/monaco-editor#5
The text was updated successfully, but these errors were encountered: