[bugfix] mobile printing
Implements fixes suggested in these issues:
#193 #152
Let me know if you want these split into individual PRs.
Looks good. Do you mind separating out? I'm iffy on approving the hack only approach fully, but would like the PR for people to use.
My plan is to look at other methods over the holiday break.
This fix appears to have Chrome on iOS printing the entire page rather than just the requested area.
I put together two test pages in Codepen:
I've tested with Safari, Chrome, and Opera on an iPhone. Will test on an iPad later today and provide a matrix of results.
@oculus42 Yeah I noticed that as well but wasn't sure if it was a bug in the library or my application code/css.
@guptanisha The only issue this solves on iPad (or iPhone) + Chrome is that is successfully opens the Print dialog. There is still another bug in that is does not correctly select the iFrame content for printing. Instead you just get the entire content of the page.