Where is the portrait vs landscape choice?
-
burnout426 Volunteer last edited by burnout426
@kramy When you're on the invoice page you want to print, close the print dialog if it's open, hit ctrl + shift + i to open the developer tools. Then, on the "sources" tab, look at the page's css files and see if you can find something like:
@media print { @page { size: landscape; }
If so, I think Chromium honors that strictly without a way to override it.
To test if it's a problem, delete
size: landscape;
from the css file (the css is editable there) and try hitting ctrl + p again to see if it then shows the layout drop-down to switch between landscape and portrait.If you find this is the case, the site needs to fix their css to not force landscape mode.
I found https://ocw.mit.edu/ans7870/SP/SP.236/S09/lecturenotes/drugchart.htm as an example page. (Found that at https://superuser.com/questions/1455052/how-do-i-force-chrome-to-print-a-web-page-in-portrait-mode)
I also think there's an old post on these forums about this. Will see if I can find it.
-
sgrandin last edited by
Btw, I reported this as a bug on Oct 21 -- BS-20978. Would have thought it would have been fixed by now.
-
burnout426 Volunteer last edited by
@burnout426 said in Where is the portrait vs landscape choice?:
also think there's an old post on these forums about this. Will see if I can find it.
Couldn't find the thread on it, but found the bug I was thinking of (and previously commented in it and starred it). See https://bugs.chromium.org/p/chromium/issues/detail?id=1016235. There's also https://bugs.chromium.org/p/chromium/issues/detail?id=1098468.
I found those by searching for https://bugs.chromium.org/p/chromium/issues/list?q=css page size landscape&can=1.
https://bugs.chromium.org/p/chromium/issues/detail?id=1202672&q=css page size landscape&can=1 is another bug that sounds like the issue. But, that one was marked "wontfix" because the user didn't respond.
-
Kramy last edited by
@burnout426 Yep, that did it. Found it in cartDetail-blahblahhex.css - as soon as I removed it, I was able to change the orientation in the print dialog again.
That's just silly that this is even a feature. I see so many ways that this could go wrong. Only makes sense for precisely laying out stuff, which business apps might use - but then they should be using locked down LTS web browsers, not public builds.
-
burnout426 Volunteer last edited by burnout426
@sgrandin This is something that Opera inherits from Chromium. Chromium bugs need to be filed at https://bugs.chromium.org/p/chromium/issues/list.
In my opinion, it's https://bugs.chromium.org/p/chromium/issues/detail?id=1098468 that represents this issue (even if it's about "portrait" instead of "landscape"). The bug has been stalled, but someone could comment on the bug and point to this forum etc.
-
burnout426 Volunteer last edited by
As a workaround, you can install User CSS. Then, when on the site that has the problem, click the extension's icon, add:
@media print { @page { size: auto; } }
for the site and click the extension's icon again to save it.
Then, reload the page if it's still open. From then on, you should be able to print with the orientation you want for the site.
-
Kramy last edited by
@burnout426 Very helpful work-around! Thank you.
In my opinion this should still be in the control of the end user. It's their printer and paper - they probably know best.
-
sgrandin last edited by sgrandin
Just did the same thing on a Costco order. No way to change it within the program (without extra code). Then checked FF, Chrome and Edge, and it does the same. Looks like underlying site program needs modification or a workaround created by Opera.
-