osw reshape fix
This commit is contained in:
1 parent
08ef392fca
commit
e0d03baf1c
1 file changed
+1
-1
@@ -361,7 +361,7 @@ import UIKit
|
|||||||
if self.shape == "round"{ // we'll make custom osc buttons round & smaller
|
if self.shape == "round"{ // we'll make custom osc buttons round & smaller
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
self.widthAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.widthFactor / 2) * 2)),
|
self.widthAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.widthFactor / 2) * 2)),
|
||||||
self.heightAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.heightFactor / 2) * 2)),])
|
self.heightAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.widthFactor / 2) * 2)),])
|
||||||
}
|
}
|
||||||
if self.shape == "square" {
|
if self.shape == "square" {
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
|
|||||||
Reference in new issue
Block a user