Windows/Chrome: Japanese IME suggestion list obscures inputted text #4089
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?
Env
Windows 10
Chrome v51
Japanese MS IME
CodeMirror: v5.13.2 (also exists in v5.16 - and earlier versions)
To reproduce:
Expected Result:
Actual Result:
I booted windows 7 and enabled Microsoft Japanese IME, and it's allowing me to type Japanese characters, but never pops up a suggestion list (neither in CodeMirror nor anywhere else). Is there something else I need to enable to get that behavior?
Oh, it was pressing space that triggered the menu. Unfortunately, on my system, both in Linux and Windows 7, the resulting widget is perfectly aligned with the bottom of the cursor. This might be related to your CSS -- could you see if it happens on the demo pages on http://codemirror.net on your system? If not, it would be helpful if you could set up a minimal demo page with your CSS in it that allows me to reproduce the issue.
On closer look at the screenshot, that is the project page, so I'll see if I can install windows 10 to see if it reproduces there.
Okay, on Windows 10 with Chrome 51 I could reproduce this. Attached patch works around the issue.
Um, I mean patch
51a1e7d, which I attached to the wrong issue.Excellent
@marijnh- thank you. Looks good to me also.Apparently this is fixed, great!
It seems that something is wrong with Firefox.

github.com/codemirror/codemirror5@e1fe2100d0/src/input/input.js (L123-L124)The wrapping div should have height, shouldn't it?
This code
would produce something better, like this:

(1em should be replaced with 1.5em (==line-height) also?)
I'm not familiar with CSS. You all must know better. Thanks!