Inline previews change height of a source line
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox70- wontfix, firefox71 fixed)
People
(Reporter: Honza, Assigned: davidwalsh)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(2 files)
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
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
I created separated bug 1576165 covering the React warning in the Browser Console.
Honza
Comment 2•5 years ago
|
||
One option is increase the editor line height to 16px
Comment 3•5 years ago
•
|
||
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.
Comment 4•5 years ago
|
||
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!
Updated•5 years ago
|
Comment 5•5 years ago
|
||
P2, as it was one of the risks we called out and a problem that we should not introduce.
Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Comment 9•5 years ago
|
||
[Tracking Requested - why for this release]: Improves rendering for inline preview, which we so far would like to ship in 70.
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Is this actually ready to ship in 70? I think it might be better to plan for 71.
Comment 11•5 years ago
|
||
Just found the planning docs for 70, I think I see what's up now.
Comment 13•5 years ago
|
||
Looks like this is now planned to ship in 71.
Updated•5 years ago
|
Description
•