mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 16:24:30 +09:00
fix: adjusted table height in the Clock settings for macOS 26
This commit is contained in:
@@ -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)
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user