Open Bug 1777191 Opened 4 years ago Updated 1 year ago

Use ResizeObserver for handling position of the side bar

Categories

(DevTools :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

Details

When DevTools are docked to a side (left/righg) side bar (with side panels) autochanges its position depending on the width of the Browser Toolbox.

This logic is based on "resize" events (and there is explicite debouncing in case of the Inspector panel). We could use "ResizeObserver" as it's doing some throttling by default.

E.g. see the Inspector panel code:
https://searchfox.org/mozilla-central/source/devtools/client/inspector/inspector.js#167-171

Honza

The Bugbug bot thinks this bug should belong to the 'DevTools::Inspector' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Inspector
Component: Inspector → General
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.