Properly use bottom margin to calculate the footer height.

http://code.google.com/p/phantomjs/issues/detail?id=894
1.8
Milian Wolff 2012-11-29 13:42:18 +01:00
parent 4caa71a6b7
commit fd653fe61f
1 changed files with 1 additions and 1 deletions

View File

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