1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 17:08:39 +00:00

Allow change of of a group button width (#336)

This commit is contained in:
Giuseppe Petrosino 2020-06-17 23:40:58 +02:00 committed by GitHub
parent aa69d5f592
commit a65613acaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,6 +428,12 @@ extension NSCustomTouchBarItem: CanSetWidth {
} }
} }
extension NSPopoverTouchBarItem: CanSetWidth {
func setWidth(value: CGFloat) {
view?.widthAnchor.constraint(equalToConstant: value).isActive = true
}
}
extension BarItemDefinition { extension BarItemDefinition {
var align: Align { var align: Align {
if case let .align(result)? = additionalParameters[.align] { if case let .align(result)? = additionalParameters[.align] {