Bug 1175094 - Include borderPadding in the combobox's containerWidth, so that dropdown arrow is positioned correctly in RTL. r=smontagu

This commit is contained in:
Jonathan Kew 2015-07-09 19:50:30 +01:00
parent 4a128f8ec7
commit c455ade7ad

View File

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