Make symbol images images scale correctly. Fixes #2957
This commit is contained in:
parent
ffed4fbbd5
commit
1ab727a128
|
@ -102,6 +102,10 @@ private extension IconView {
|
|||
}
|
||||
|
||||
func rectForImageView() -> NSRect {
|
||||
guard !(iconImage?.isSymbol ?? false) else {
|
||||
return NSMakeRect(0.0, 0.0, bounds.size.width, bounds.size.height)
|
||||
}
|
||||
|
||||
guard let image = iconImage?.image else {
|
||||
return NSRect.zero
|
||||
}
|
||||
|
|
|
@ -100,6 +100,10 @@ private extension IconView {
|
|||
}
|
||||
|
||||
func rectForImageView() -> NSRect {
|
||||
guard !(iconImage?.isSymbol ?? false) else {
|
||||
return NSMakeRect(0.0, 0.0, bounds.size.width, bounds.size.height)
|
||||
}
|
||||
|
||||
guard let image = iconImage?.image else {
|
||||
return NSRect.zero
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue