fix: adjusted table height in the Clock settings for macOS 26

This commit is contained in:
Serhiy Mytrovtsiy
2025-10-06 17:33:08 +02:00
parent 0f9761625b
commit 967e8193c0

View File

@@ -108,8 +108,13 @@ internal class Settings: NSStackView, Settings_v, NSTableViewDelegate, NSTableVi
self.addArrangedSubview(separator)
self.addArrangedSubview(self.footer())
var hight: CGFloat = 296
if #available(macOS 26.0, *) {
hight = 290
}
NSLayoutConstraint.activate([
self.scrollView.heightAnchor.constraint(equalToConstant: 296)
self.scrollView.heightAnchor.constraint(equalToConstant: hight)
])
}