mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-17 14:17:13 +03:00
Fix autolayout for panel accessory (close #795)
This commit is contained in:
parent
75e5305710
commit
55705ccf73
@ -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.
|
||||
|
||||
|
||||
|
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user