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

git-svn-id: svn://10.0.0.236/trunk@215782 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2006-11-24 08:12:17 +00:00
parent 9f34a2a380
commit 31c9af6683

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);