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
Родитель bf2b212c90
Коммит 4267d7e19e
1 изменённых файлов: 9 добавлений и 3 удалений

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

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