Closed Xantomen closed 8 years ago
Now, the problem was I had the #headers as position:relative, which was throwing off the page size. Changing #headers to position:absolute completely solved the problem.
Phew!
Revised; Turned back #headers to position:relative, because the print looked bad (game controller very close to the top).
Now what I do is, on prepareContainerToPrint I already display:block the #headers, so the algorithm can calculate where the lines should be beforehand.
-The way to solve it before was using the function prepareContainerToPrint() each time the content was going to be printed, to rescale the content_all div to a DINA4 dimension. Then, I return it to the original size after the printing preview has gotten what it needed.