mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-06 12:18:26 +00:00
Fix layout issues on macOS 15.
This commit is contained in:
1 parent
cec97b8034
commit
a17c2fa007
3 files changed
+18
-1
No files matched your search
@@ -51,5 +51,11 @@ public extension NSView {
|
||||
self.frame = rect
|
||||
}
|
||||
}
|
||||
|
||||
/// Sets the view’s height to its Auto Layout fitting height, keeping its width.
|
||||
func sizeHeightToFit() {
|
||||
layoutSubtreeIfNeeded()
|
||||
setFrameSize(NSSize(width: frame.width, height: fittingSize.height))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user