Fix autolayout for panel accessory (close #795)

This commit is contained in:
1024jp 2018-02-26 21:20:05 +09:00
parent 75e5305710
commit 55705ccf73
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ unreleased
- Fix an issue where lossy saving was failed.
- Fix an issue where `⌘←` was ignored when the cursor locates at the end of the document.
- Fix an issue where save dialog layout crrupted when toggle visibility of the file browser.
- Fix an issue where no alart was raised on saving even when document contains lossy yen signs.

View File

@ -646,6 +646,7 @@ final class Document: NSDocument, AdditionalDocumentPreparing, EncodingHolder {
printOperation.canSpawnSeparateThread = true // display print progress panel as a sheet
// setup print panel
self.printPanelAccessoryController.view.setContentHuggingPriority(.fittingSizeCompression, for: .horizontal)
printOperation.printPanel.addAccessoryController(self.printPanelAccessoryController)
printOperation.printPanel.options.formUnion([.showsPaperSize, .showsOrientation, .showsScaling])