Fix layout issues on macOS 15.

This commit is contained in:
Brent Simmons committed 2026-10-08 14:46:10 -07:00
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