Where is the portrait vs landscape choice?
-
sgrandin last edited by
Looking at Print Preview for a page and it shows in landscape, when it should be in portrait, as it normally is. The printer's System Dialogue preferences are set to Portrait. I don't see anything on the PP pop up for portrait vs landscape. Where is it being controlled? Version 80.0.4170.63 Thanks,
-
sgrandin last edited by sgrandin
@sgunhouse That's what I thought too, but not this one:
https://1drv.ms/u/s!AqsCKHVTj0ydqRvtsuCvfznCUEOs
It's an order summary page at Vitacost. Layout starts to appear then disappears. Looks like Opera is having a problem with it.
-
sgunhouse Moderator Volunteer last edited by
@sgrandin There is a size limit (megabytes, not dimensions) on image uploads in the forum. Either cut the image down to the important parts (in this case, the options panel) or use an external host and embed the image from there.
Given it is apparently showing Landscape, the panel may be somewhat narrow and you may have to scroll it.
-
sgrandin last edited by sgrandin
@sgunhouse Well, now two problems: the jpg image of the right side is 41k, which presumably is well within the size limits of this forum, but gives an error message when uploading. So I used OneDrive. https://1drv.ms/u/s!AqsCKHVTj0ydqRvtsuCvfznCUEOs
-
Kramy last edited by
@sgrandin This must be a recent change to Opera. I am having the same problem on some websites, like Newegg. Opera forces them to be Landscape (across 3 pages) when previously the invoice fit on one. If I force it to Portrait in my printer drivers... I get a smaller portrait page printed landscape with a white bar on the right! Oy!
Only certain websites do it. Most still have the option to change the layout. And most still default to Portrait. So I'm assuming there's either some intuitive AI settings thingy at work (which should be disabled IMO - just show me all the options) or they've enabled something that lets websites choose what you can and can't see. (bad form, IMO) Generally when you allow websites to decide what you can see - like if you have a mouse cursor, or whether menu and address bars are there, or whether to go fullscreen, etc - some scammer comes along and combines all the features into a way to trick elderly people and computer novices into paying them money. If you give a website some trust or some rope, they'll hang you with it.
I want my print options back so that I can print invoices properly.
-
burnout426 Volunteer last edited by
@kramy Do you have a link to a public page that triggers landscape print layout?
-
Kramy last edited by
@burnout426 It's usually invoices for me - so public pages? Not yet.
@leacg Yes, Chrome and other browsers do it too.
Here's an example with personal info blotted out. Amazon is portrait. Newegg.ca is portrait. Newegg order invoices are landscape with no option to change it.
-
sgrandin last edited by
Thanks Kramy for mentioning it too. It's been a couple of months, but my hazy memory is that it was also an invoice or something similar that led me to post.
-
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.