Text indent is shifted when the Conditional breakpoint panel is open
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: bomsy, Assigned: bomsy)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files, 1 obsolete file)
In Bug 1887649 support for showing Conditional breakpoints. When the conditional breakpoints panel is open the line just above (See screenshot) is indented incorrectly as compared to the others. This issue is likely due to the ViewPlugin
which does not support defining the block property . An alternative is to use StateFields
instead, which supports the block property.
Updated•11 months ago
|
Assignee | ||
Comment 1•9 months ago
|
||
Highlights of this patch
- Fixes the line shifting issue in the related bug as the
block
property can be used inDecoration.widget
. - Uses Statefields. With StateFields codemirror has more control over updates, avoiding possible crashes like in Bug 1898157
- Changes from using
conditions
on markers to usingpositions
, this means we can just render the marker at the
desired location without always needing to loop over the all the lines of the viewport. Most times the number ofpositions
to mark
are a lot lesser that the no of lines in theviewport
. - When explicitly updating a marker only the required decoration is updated.
Updated•9 months ago
|
Assignee | ||
Updated•9 months ago
|
Comment 2•9 months ago
|
||
Comment on attachment 9407807 [details]
Bug 1892684 - [devtools] Refactor lineContentMarkers to use StateFields from ViewPlugins r=#devtools-reviewers
Revision D213012 was moved to bug 1905380. Setting attachment 9407807 [details] to obsolete.
Assignee | ||
Comment 3•9 months ago
|
||
The story here :-
CM6 adds a padding of 6px as a space between the gutter and the editor content.
The consequence of this the conditional panel will have a 6px gap on the left side.
Prior to this patch i removed the padding on the .cm-line element which contains the
conditional panel, this causes the content on the line to shift and ..viola ..the BUG.
To fix this, i'm adding 6px padding-inline-start to compensate.
Meh solution ... :)
Depends on D213012
Comment 5•8 months ago
|
||
bugherder |
Comment 6•8 months ago
|
||
Bomsy, I guess we can close the bug?
Comment 7•2 months ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:bomsy, maybe it's time to close this bug?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 8•2 months ago
|
||
Yeah lets close this bug.
Assignee | ||
Updated•2 months ago
|
Description
•