From 55705ccf739adbf013ce49f506e16540a6b40ba2 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Mon, 26 Feb 2018 21:20:05 +0900 Subject: [PATCH] Fix autolayout for panel accessory (close #795) --- CHANGELOG.md | 1 + CotEditor/Sources/Document.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index abd603ecc..d14621237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/CotEditor/Sources/Document.swift b/CotEditor/Sources/Document.swift index a9e6a3048..bc81a61bf 100644 --- a/CotEditor/Sources/Document.swift +++ b/CotEditor/Sources/Document.swift @@ -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])