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:
Simon Montagu 2010-04-08 09:11:14 -07:00
parent 995faa7109
commit acb301bdd2

View File

@ -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