mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
73ee6e2b1f
commit
d3cbada9f4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user