small fixes
This commit is contained in:
parent
8be65d4f57
commit
392ab144ac
@ -93,8 +93,8 @@ public struct GraphObject {
|
|||||||
mutating func updateSize() {
|
mutating func updateSize() {
|
||||||
switch size {
|
switch size {
|
||||||
case .small:
|
case .small:
|
||||||
diameter = MFSizeObject(standardSize: 24)?.getValueBasedOnApplicationWidth() ?? 24
|
diameter = MFSizeObject(standardSize: 20)?.getValueBasedOnApplicationWidth() ?? 20
|
||||||
lineWidth = MFSizeObject(standardSize: 5)?.getValueBasedOnApplicationWidth() ?? 5
|
lineWidth = MFSizeObject(standardSize: 4)?.getValueBasedOnApplicationWidth() ?? 4
|
||||||
break
|
break
|
||||||
case .medium:
|
case .medium:
|
||||||
diameter = MFSizeObject(standardSize: 100)?.getValueBasedOnApplicationWidth() ?? 100
|
diameter = MFSizeObject(standardSize: 100)?.getValueBasedOnApplicationWidth() ?? 100
|
||||||
|
|||||||
@ -38,8 +38,6 @@ import UIKit
|
|||||||
case .none:
|
case .none:
|
||||||
heightConstraint?.constant = 0
|
heightConstraint?.constant = 0
|
||||||
}
|
}
|
||||||
setNeedsLayout()
|
|
||||||
layoutIfNeeded()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user