Figure out how to scale down print preview
Categories
(Core :: Printing: Setup, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: jwatt, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Whiteboard: [print2020_v80])
Attachments
(1 file)
The new printing UI puts print preview in a doorhander, which is narrower than the full tab print preview that we currently have. mstriemer mentioned in a call that the reduced width causes the preview document to get horizontal scrollbars, which is obviously horrible.
We should figure out how to coordinate scaling of the print preview document so that it does not scroll horizontally. ComputePageTransform is probably a good place to start looking.
![]() |
Reporter | |
Updated•5 years ago
|
Comment 1•5 years ago
|
||
(Somewhat relatedly, we'll also need to scale down each tiny-page in the "pages per sheet" visualization & printed output. And then also scale down the sheet itself, to fit into doorhanger per comment 0. Possibly some code-sharing opportunities.)
Assignee | ||
Comment 2•5 years ago
|
||
Poking at this. This is different from bug 1631452 in the sense that this should have no layout effect on the page (and that's great because or incremental reflow setup in print preview just sucks).
I have a patch that almost does it, on top of Mark's patch. It abuses the print preview scale we already apply in the page sequence frame. I think that's the way to go, since it's both trivial and gets us the desired effect.
Assignee | ||
Comment 3•5 years ago
|
||
This seems to almost do the trick, only some tweaks missing (the
overflow area gets too big and we show scrollbars), and we don't account
for the pages' horizontal margin. All that is fixable of course and will
look after lunch.
This requires flexing the browser element so that the viewport size of
the print preview document changes.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Updated•5 years ago
|
![]() |
Reporter | |
Updated•5 years ago
|
Updated•5 years ago
|
![]() |
Reporter | |
Updated•5 years ago
|
Description
•