mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Make the scroll bar and resizer always be on the left of right-to-left widgets. Bug 556363, r=Enn
This commit is contained in:
parent
995faa7109
commit
acb301bdd2
@ -2694,6 +2694,12 @@ PRBool
|
||||
nsGfxScrollFrameInner::IsScrollbarOnRight() const
|
||||
{
|
||||
nsPresContext *presContext = mOuter->PresContext();
|
||||
|
||||
// The position of the scrollbar in top-level windows depends on the pref
|
||||
// layout.scrollbar.side. For non-top-level elements, it depends only on the
|
||||
// directionaliy of the element (equivalent to a value of "1" for the pref).
|
||||
if (!mIsRoot)
|
||||
return IsLTR();
|
||||
switch (presContext->GetCachedIntPref(kPresContext_ScrollbarSide)) {
|
||||
default:
|
||||
case 0: // UI directionality
|
||||
|
Loading…
Reference in New Issue
Block a user