mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 328718 - "GetEdgePaperMarginCoord should extend one inch" [p=hb@calen.de (Hb) r+sr+a1.9=roc]
This commit is contained in:
parent
70521d9ed1
commit
e8a1a3f8a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user