Adjust textView frame size after scaling

This commit is contained in:
1024jp 2020-06-03 13:56:48 +09:00
parent f352a2025e
commit fceaf48b2f
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Change Log
### Fixes
- Fix text flickering while pinch-zoom.
- Fix an issue in the editor where the bottom part of the editor became occasionally not responsive when the editor is zoomed-out.
- Fix an issue in the find panel fields that carriage retturns (CR) were not drawn as line endings but conrol characters.
- Fix an issue under macOS 10.14 that the text in the About panel was black even in the Dark Mode.

View File

@ -129,7 +129,8 @@ extension NSTextView {
}
// reset minimum size for unwrap mode
self.minSize = self.visibleRect.size
let visibleRect = self.enclosingScrollView?.documentVisibleRect ?? self.visibleRect
self.minSize = visibleRect.size
// update view size
// -> For in the case by scaling-down when the view becomes bigger than text content width