Bug 328718 - "GetEdgePaperMarginCoord should extend one inch" [p=hb@calen.de (Hb) r+sr+a1.9=roc]

This commit is contained in:
reed@reedloden.com 2008-01-28 23:38:20 -08:00
parent 70521d9ed1
commit e8a1a3f8a9

View File

@ -211,8 +211,8 @@ nsSimplePageSequenceFrame::Reflow(nsPresContext* aPresContext,
nsMargin edgeTwips;
mPageData->mPrintSettings->GetEdgeInTwips(edgeTwips);
// sanity check the values. an inch is still probably excessive
nscoord inchInTwips = NS_INCHES_TO_TWIPS(1.0);
// sanity check the values. three inches are sometimes needed
nscoord inchInTwips = NS_INCHES_TO_TWIPS(3.0);
edgeTwips.top = PR_MIN(PR_MAX(edgeTwips.top, 0), inchInTwips);
edgeTwips.bottom = PR_MIN(PR_MAX(edgeTwips.bottom, 0), inchInTwips);
edgeTwips.left = PR_MIN(PR_MAX(edgeTwips.left, 0), inchInTwips);