Bug 781086. Accidentally misplaced argument meant we were getting the min size instead of the pref size causing scroll bars to appear where they shouldn't. r=roc

This commit is contained in:
Timothy Nikkel 2012-08-13 21:59:44 -05:00
parent b59a68e777
commit 2c8602f652

View File

@ -493,7 +493,7 @@ nsHTMLScrollFrame::ReflowScrolledFrame(ScrollReflowState* aState,
if (aAssumeVScroll) {
nsSize vScrollbarPrefSize;
GetScrollbarMetrics(aState->mBoxState, mInner.mVScrollbarBox,
&vScrollbarPrefSize, nsnull, true);
nsnull, &vScrollbarPrefSize, true);
availWidth = NS_MAX(0, availWidth - vScrollbarPrefSize.width);
}