Forum Discussion
Printing off center using the window.print(); java script
Hi
I stumbled across this searching for an answer - I was using javascript to open a print dialogue box from my SL360 course. It was pushing everything over to the right rather than scaling to fit paper, meaning learners had to fiddle with the print properties to ensure the page they wanted to print wasnt cut off.
SOLUTION:
the above was happening when I had 'Menu and Controls' switched off within the player, to give it a seamless modern feel. Despite them being off, when attempting to print it was still pushing everything to the right to make room for the invisible menu etc.
Instead, I turned Menus and Controls back ON, and manually switched off the resource tab, the previous/next buttons, the volume control etc. Basically created the seamless modern player the old fashioned way.
And voila! When I now print, it centres the content automatically and no longer pushes everything off to the right.
Old conversation but hope this helps someone!