bug 5522 - initialize max element size. sr=attinasi, r=peterl.

This commit is contained in:
karnaze%netscape.com 2001-05-01 12:42:53 +00:00
parent 863ecb03f2
commit 9516920471
2 changed files with 10 additions and 0 deletions

View File

@ -678,6 +678,11 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
// Get our desired size
GetDesiredSize(aPresContext, aReflowState, aMetrics);
// initialize max element size if present
if (aMetrics.maxElementSize) {
aMetrics.maxElementSize->width = 0;
aMetrics.maxElementSize->height = 0;
}
// could be an image
nsIFrame * child = mFrames.FirstChild();

View File

@ -678,6 +678,11 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
// Get our desired size
GetDesiredSize(aPresContext, aReflowState, aMetrics);
// initialize max element size if present
if (aMetrics.maxElementSize) {
aMetrics.maxElementSize->width = 0;
aMetrics.maxElementSize->height = 0;
}
// could be an image
nsIFrame * child = mFrames.FirstChild();