Xantomen / GamesInputPal

http://xantomen.com/gamesinputpal/
GNU General Public License v3.0
2 stars 0 forks source link

Detected issue with lines appearing in incorrect place when printing. Solved it in the past. Reappearing bug. #39

Closed Xantomen closed 8 years ago

Xantomen commented 8 years ago

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

Xantomen commented 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!

Xantomen commented 8 years ago

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.