From c455ade7ad3f34e4648a49c3665c3094cfa8d08f Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Thu, 9 Jul 2015 19:50:30 +0100 Subject: [PATCH] Bug 1175094 - Include borderPadding in the combobox's containerWidth, so that dropdown arrow is positioned correctly in RTL. r=smontagu --- layout/forms/nsComboboxControlFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 88a41139e19..5120e91c82f 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -866,7 +866,8 @@ nsComboboxControlFrame::Reflow(nsPresContext* aPresContext, // The button should occupy the same space as a scrollbar WritingMode wm = aReflowState.GetWritingMode(); - nscoord containerWidth = aReflowState.ComputedWidth(); + nscoord containerWidth = aReflowState.ComputedWidth() + + aReflowState.ComputedPhysicalBorderPadding().LeftRight(); LogicalRect buttonRect = mButtonFrame->GetLogicalRect(containerWidth); buttonRect.IStart(wm) =