Fixed to not subtract out borders/padding when unconstrained height reflow is occuring

This commit is contained in:
kipp%netscape.com 1998-11-26 18:14:17 +00:00
parent 0de0988eb8
commit 1ed8e1edae
2 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ nsFieldSetFrame::Reflow(nsIPresContext& aPresContext,
}
if ((NS_UNCONSTRAINEDSIZE != availSize.height) && (availSize.height < aDesiredSize.height)) {
availSize.height = 0;
} else {
} else if (NS_UNCONSTRAINEDSIZE != availSize.height) {
availSize.height -= aDesiredSize.height;
}
SetMaxElementSize(maxElementSize, aDesiredSize.maxElementSize);

View File

@ -317,7 +317,7 @@ nsFieldSetFrame::Reflow(nsIPresContext& aPresContext,
}
if ((NS_UNCONSTRAINEDSIZE != availSize.height) && (availSize.height < aDesiredSize.height)) {
availSize.height = 0;
} else {
} else if (NS_UNCONSTRAINEDSIZE != availSize.height) {
availSize.height -= aDesiredSize.height;
}
SetMaxElementSize(maxElementSize, aDesiredSize.maxElementSize);