Bug 1828879 - Fix position of RTL vertical overlay scrollbars. r=tnikkel,layout-reviewers

It was just a silly mistake. In the rtl case the position is already the
start, we don't need to move it into the box.

Differential Revision: https://phabricator.services.mozilla.com/D176229
This commit is contained in:
Emilio Cobos Álvarez 2023-04-23 04:48:46 +00:00
parent 73ee6e2b1f
commit d3cbada9f4

View File

@ -6534,9 +6534,7 @@ void nsHTMLScrollFrame::LayoutScrollbars(ScrollReflowInput& aState,
// not visible because it is positioned just outside the scrollport. But
// we know that it needs to be made visible so we shift it back in.
vRect.width += width;
if (scrollbarOnLeft) {
vRect.x += width;
} else {
if (!scrollbarOnLeft) {
vRect.x -= width;
}
}