Manually adjust column width of outline list (fix #1365)

This commit is contained in:
1024jp 2022-09-15 22:30:20 +09:00
parent b1ae9748e2
commit 2b9d017e14
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Change Log
### Fixes
- Fix an issue that the width of the line number view was not updated when the content was changed on disk.
- Fix an issue that the column of the outline pane was narrower than the list width.
- [non-AppStore ver.] Fix an issue that a message about the software update in the General pane was hidden.
- [tirivial] Fix some typo.
- [dev] Update the build environment to Xcode 14.1 beta.

View File

@ -92,6 +92,10 @@ final class OutlineViewController: NSViewController {
super.viewWillAppear()
// Workaround a long-standing issue in single column table views.
// cf. [#1365](https://github.com/coteditor/CotEditor/pull/1365)
self.outlineView?.sizeLastColumnToFit()
self.fontSizeObserver = UserDefaults.standard.publisher(for: .outlineViewFontSize, initial: true)
.sink { [weak self] _ in
self?.outlineView?.reloadData()