зеркало из https://github.com/mozilla/pjs.git
Bug 360227: prevent framesets from taking up an extra blank page when print/print previewing. r+sr=roc.
This commit is contained in:
Родитель
bf2b212c90
Коммит
4267d7e19e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче