| Index: chrome/browser/resources/print_preview/data/print_ticket_store.js
|
| diff --git a/chrome/browser/resources/print_preview/data/print_ticket_store.js b/chrome/browser/resources/print_preview/data/print_ticket_store.js
|
| index 6324762a03c7fc05382b2523c9ddd6bbc660dcf1..c23a98000ef411e112747008d6af60bf94775521 100644
|
| --- a/chrome/browser/resources/print_preview/data/print_ticket_store.js
|
| +++ b/chrome/browser/resources/print_preview/data/print_ticket_store.js
|
| @@ -420,8 +420,13 @@ cr.define('print_preview', function() {
|
| vendor_id: value.vendor_id
|
| };
|
| }
|
| - if (this.landscape.isCapabilityAvailable() &&
|
| - this.landscape.isUserEdited()) {
|
| + if (!this.landscape.isCapabilityAvailable()) {
|
| + // In this case "orientation" option is hidden from user, so user can't
|
| + // adjust it for page content, see Landscape.isCapabilityAvailable().
|
| + // We can improve results if we set AUTO here.
|
| + if (this.landscape.hasOption('AUTO'))
|
| + cjt.print.page_orientation = { type: 'AUTO' };
|
| + } else if (this.landscape.isUserEdited()) {
|
| cjt.print.page_orientation =
|
| {type: this.landscape.getValue() ? 'LANDSCAPE' : 'PORTRAIT'};
|
| }
|
|
|