]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1986725: restore portrait/landscape choice when printing from Angular
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 9 Sep 2022 15:22:46 +0000 (11:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 9 Sep 2022 18:47:45 +0000 (14:47 -0400)
commit3996c39d3a1f667631f61dbb864eb80ce83579ba
tree6b97c5746d39c4fe57e091728604d13b3236eeee
parent50929e7bff678873bc5dd2df071802f40cc447a1
LP#1986725: restore portrait/landscape choice when printing from Angular

This patch works around a default setting in Bootstrap 4 that specifies
A3 as the paper size for printing. Specifying any paper size like this
causes Chrome and Firefox to stop offering the users the option to
choose the paper orientation.

My testing suggests that specifying A3 as the default paper size also
resulted in the printed text using a smaller font size when printing
on US paper sizes. Some sort of scaling down from A3 to letter,
perhaps.

To test
-------
[1] Open the Angular Holds Pull List, select a branch that has items
    to pull, and click the Print Full List button. Observe that the
    browser print dialog does not offer an option to choose the
    orientation.
[2] As above, but for any Angular grid's Print Full Grid action.
[3] Apply the patch and repeat 1 and 2. This time, the browser print
    dialog should offer the option to select the orientation.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/eg2/src/styles.css