asl97 / Bingo-Spinner

A simple bingo spinner with text to speech
https://asl97.github.io/Bingo-Spinner/
MIT License
0 stars 0 forks source link

Printing as PDF still broken on firefox android #17

Open asl97 opened 10 months ago

asl97 commented 10 months ago

Mainly focusing on batch printing but affect the fairly useless individual Card Printer as well.

Android Chrome breaks card into 2 Screenshot_2023-12-26-19-41-35-211_com android printspooler

Android Firefox doesn't fully use whole page Screenshot_2023-12-26-19-44-34-416_com android printspooler Screenshot_2023-12-26-19-44-44-505_com android printspooler

Related: https://github.com/asl97/Bingo-Spinner/issues/9#issuecomment-1803211871

asl97 commented 10 months ago

How it should look (sample from a laptop): image

asl97 commented 10 months ago

Messing with @page, `margin, etc doesn't seem to help, it seem to be something about how vh and vw works and my longer screen width on mobile device.

firefox android print to pdf is totally broken as far as I can tell, it seem to be stuck in portrait mode even when set to landscape.

Going to attempt hard coding the size and provide an option for selecting the hard coded size.

asl97 commented 10 months ago

https://github.com/asl97/Bingo-Spinner/commit/263588dc0267b3e43e14ebeca4fc1ca79f1124de

hard coding width and height seem to work somewhat, it still broken on firefox though.

asl97 commented 10 months ago

current android chrome Screenshot_2023-12-28-17-53-21-615_com android printspooler

current android firefox Screenshot_2023-12-28-17-53-50-546_com android printspooler Screenshot_2023-12-28-17-54-03-715_com android printspooler

asl97 commented 10 months ago

pre-generated sample of card https://asl97.github.io/Bingo-Spinner/sample/CS75-4000.html

resulting pdf from android firefox temp2364311225429334798.pdf

resulting pdf from android chrome CS75-4000.pdf

created issue on mozilla bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1872249