Skip to content

Commit

Permalink
Fix font field shrinking
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed May 26, 2024
1 parent 20ed11c commit 27fd054
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- Fix an issue that the application crashed by opening the Appearance settings pane when the font the user set did not exist.
- Fix an issue in the syntax editor that the Values pane was missing in the highlighting list in the sidebar.
- Fix an issue that the font fields in the Appearance settings pane could unnecessary shrunk with specific fonts.



Expand Down
6 changes: 6 additions & 0 deletions CotEditor/Sources/AntialiasingText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ struct AntialiasingText: NSViewRepresentable {
}


func sizeThatFits(_ proposal: ProposedViewSize, nsView: NSTextField, context: Context) -> CGSize? {

proposal.replacingUnspecifiedDimensions()
}


/// Sets whether disables the antialias.
///
/// - Parameter disabled: The antialias state to change.
Expand Down

0 comments on commit 27fd054

Please sign in to comment.