mirror of https://github.com/vitalif/phantomjs
Properly use bottom margin to calculate the footer height.
http://code.google.com/p/phantomjs/issues/detail?id=8941.8
parent
4caa71a6b7
commit
fd653fe61f
|
@ -74,7 +74,7 @@ HeaderFooter::HeaderFooter(const QWebFrame* frame, QPrinter* printer, QWebFrame:
|
|||
// find existing margins
|
||||
printer->getPageMargins(&marginLeft, &marginTop, &marginRight, &marginBottom, QPrinter::DevicePixel);
|
||||
const qreal oldMarginTop = marginTop;
|
||||
const qreal oldMarginBottom = marginTop;
|
||||
const qreal oldMarginBottom = marginBottom;
|
||||
|
||||
printer->getPageMargins(&marginLeft, &marginTop, &marginRight, &marginBottom, QPrinter::Point);
|
||||
// increase margins to hold header+footer
|
||||
|
|
Loading…
Reference in New Issue