Bug 360227: prevent framesets from taking up an extra blank page when print/print previewing. r+sr=roc.

This commit is contained in:
sharparrow1%yahoo.com 2006-11-24 08:12:17 +00:00
parent 8fa9a1d89e
commit 08d6a5b39d

View File

@ -710,10 +710,16 @@ nsHTMLFramesetFrame::GetDesiredSize(nsPresContext* aPresContext,
{
nsHTMLFramesetFrame* framesetParent = GetFramesetParent(this);
if (nsnull == framesetParent) {
nsRect area = aPresContext->GetVisibleArea();
if (aPresContext->IsPaginated()) {
// XXX This needs to be changed when framesets paginate properly
aDesiredSize.width = aReflowState.availableWidth;
aDesiredSize.height = aReflowState.availableHeight;
} else {
nsRect area = aPresContext->GetVisibleArea();
aDesiredSize.width = area.width;
aDesiredSize.height= area.height;
aDesiredSize.width = area.width;
aDesiredSize.height= area.height;
}
} else {
nsSize size;
framesetParent->GetSizeOfChild(this, size);