Fixed ComputeDesiredSize() to make sure it includes the absolutely positioned

items
This commit is contained in:
troy%netscape.com 1998-10-30 21:43:16 +00:00
Родитель 95a11ed05f
Коммит ee443793e0
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -559,7 +559,9 @@ nsBodyFrame::ComputeDesiredSize(nsIPresContext& aPresContext,
if ((0 == (NS_BODY_SHRINK_WRAP & mFlags)) &&
(NS_UNCONSTRAINEDSIZE != aMaxSize.width)) {
// Make sure we're at least as wide as our available width
width = PR_MAX(aMetrics.width, aMaxSize.width);
if (aMaxSize.width > width) {
width = aMaxSize.width;
}
}
}
if (aReflowState.HaveConstrainedHeight()) {