Closed Bug 1576163 Opened 5 years ago Closed 5 years ago

Inline previews change height of a source line

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox70- wontfix, firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox70 - wontfix
firefox71 --- fixed

People

(Reporter: Honza, Assigned: davidwalsh)

References

(Blocks 1 open bug)

Details

(Whiteboard: [debugger-mvp])

Attachments

(2 files)

Attached video 2019-08-23 15-07-15.mp4

Displaying inline preview boxes is changing height of a source line (in Debugger source view) and adding new previews when stepping causes the source to jump.

See the attached screencast.

Honza

I created separated bug 1576165 covering the React warning in the Browser Console.
Honza

One option is increase the editor line height to 16px

Removing this line fixes the line height changes: https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/sourceeditor/codemirror/lib/codemirror.css#273

Correction: Removing it also causes the line-widget to overlay the code. Bad hack, but just removing also is bad.

Switching from padding: 0.1px hack to display: flow-root in CodeMirror's CSS fixes this as well. Kudos to :dholbert for pointing this out!

Whiteboard: [debugger-mvp]

P2, as it was one of the risks we called out and a problem that we should not introduce.

Priority: -- → P2
Assignee: nobody → dwalsh
Status: NEW → ASSIGNED
Pushed by dwalsh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b5564dbb511
Prevent line shifting from inline preview r=jlast
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71

[Tracking Requested - why for this release]: Improves rendering for inline preview, which we so far would like to ship in 70.

Is this actually ready to ship in 70? I think it might be better to plan for 71.

Flags: needinfo?(jlaster)
Flags: needinfo?(hkirschner)

Just found the planning docs for 70, I think I see what's up now.

Flags: needinfo?(jlaster)
Flags: needinfo?(hkirschner)

Do you want to request uplift here?

Flags: needinfo?(dwalsh)

Looks like this is now planned to ship in 71.

Flags: needinfo?(dwalsh)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: