зеркало из https://github.com/mozilla/pjs.git
Border left and right was being added to an unconstrained size
b 21945 r=troy
This commit is contained in:
Родитель
8181c2bd8d
Коммит
a87ed2dc82
|
@ -773,7 +773,9 @@ nsScrollFrame::Reflow(nsIPresContext* aPresContext,
|
|||
|
||||
// Compute our desired size
|
||||
aDesiredSize.width = scrollAreaSize.width;
|
||||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче