Closed Bug 1953394 Opened 1 year ago Closed 1 year ago

Pausing on a location outside of the current viewport horizontally wouldn't move the paused location in center of the screen

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox139 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 external file)

While pausing in a non-visible location, which is up/down vertically, we would move the paused line in the middle of the codemirror viewport,
we don't do that for locations on left/right of the current viewport.
Instead, we only show the first character on the left or right edges of the current viewport.

As soon as the paused location isn't visible, we should move the viewport to make it so that the paused location is in the middle of the viewport.

Before this patch, it would only make the column visible on the edge of the viewport,
so that we could only see the breakpoint marker, and/or only the first character after the pause location.

With this patch, if the paused location is visible, nothing happens.
But if the paused location is outside of the viewport, the paused location is centered horizontally.

Also remove the unused third argument of Editor's scrollTo.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Depends on: 1928824
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ccec3a38ebaf [devtools] Scroll to center new pause location with column being out of the viewport. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: