Border left and right was being added to an unconstrained size
b 21945 r=troy git-svn-id: svn://10.0.0.236/trunk@60883 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5609eaece7
commit
cd373c38d9
@ -773,7 +773,9 @@ nsScrollFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
// Compute our desired size
|
||||
aDesiredSize.width = scrollAreaSize.width;
|
||||
aDesiredSize.width += border.left + border.right;
|
||||
if (NS_UNCONSTRAINEDSIZE != aDesiredSize.width) {
|
||||
aDesiredSize.width += border.left + border.right;
|
||||
}
|
||||
if ((kidDesiredSize.height > scrollAreaSize.height) ||
|
||||
(aReflowState.mStyleDisplay->mOverflow == NS_STYLE_OVERFLOW_SCROLL)) {
|
||||
aDesiredSize.width += sbWidth;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user