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

[CEF 2171] Inline Editor file names only partly underlined #10027

Closed
marcelgerber opened this issue Nov 26, 2014 · 5 comments
Closed

[CEF 2171] Inline Editor file names only partly underlined #10027

marcelgerber opened this issue Nov 26, 2014 · 5 comments

Comments

@marcelgerber
Copy link
Contributor

  1. Open DocumentManager.js
  2. On line 147, place your cursor on getOpenDocumentForPath
  3. Open an Inline Editor (Cmd/Ctrl-E)
  4. Hover the displayed file name/line (DocumentManager.js : 123)

Result:
The file name/line is only partly underlined
image

(Does also reproduce without extensions)

@marcelgerber
Copy link
Contributor Author

Maybe related: #7271 and fix #7273.

@RaymondLim
Copy link
Contributor

I can only reproduce it on Windows.

@peterflynn
Copy link
Member

Notice that the cutoff aligns exactly with the line number gutter -- so it may be a z-order issue with the gutter elements. We had this exact same bug once before, due to CSS changes: #7271.

@peterflynn peterflynn added this to the Release 1.1 milestone Nov 26, 2014
@peterflynn peterflynn added the cef label Nov 26, 2014
@peterflynn
Copy link
Member

Interestingly, this repros for me only with the JS inline editor -- not the CSS one. Maybe the presence of the New Rule button is changing things?

In the new CEF, the CodeMirror widget (and its attendant gutter element) is getting positioned 1px higher than it is in the old CEF. That difference could be as simple as font metrics being slightly different.

The box model for that label looks a little funny on both browsers: its parent div doesn't fully fit the link <a> within its bounds -- it hangs partly off the bottom of the bounds. This seems to be due to an inherited line-height: 0px applied to all of .inline-text-editor (I'm actually surprised that hasn't caused more problems already!). Removing that, so the header always has enough room to fit the text, is one way to fix this. The line-height was added in #5818, and it seems like (a) there could be a better fix for that, but also (b) in the bug thread we agreed that this 'fix' wasn't even necessary!

@dangoor dangoor removed this from the Release 1.1 milestone Dec 8, 2014
@dangoor
Copy link
Contributor

dangoor commented Dec 8, 2014

Not a release blocker. Removing milestone.

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

7 participants