Open Bug 1906231 Opened 4 months ago Updated 4 months ago

Handle horizontal scroll for ConditionalPanel in cm6

Categories

(DevTools :: Debugger, task)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

In cm5 was "fixed", so if you scrolled horizontally, you would always see the expression.
This is handled in https://searchfox.org/mozilla-central/rev/a67f92611070fcdba22a106ee140ab0059cc4611/devtools/client/debugger/src/components/Editor/ConditionalPanel.js#110-115

repositionOnScroll = () => {
  if (this.panelNode && this.scrollParent) {
    const { scrollLeft } = this.scrollParent;
    this.panelNode.style.transform = `translateX(${scrollLeft}px)`;
  }
};

We should probably make this code work for cm6 as well

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: