resolved drawing prob.
This commit is contained in:
parent
d6005290db
commit
926c2c4cf3
@ -208,16 +208,12 @@ import UIKit
|
|||||||
feedbackLabelTrailing = layoutMarginsGuide.trailingAnchor.constraint(equalTo: feedbackLabel.trailingAnchor)
|
feedbackLabelTrailing = layoutMarginsGuide.trailingAnchor.constraint(equalTo: feedbackLabel.trailingAnchor)
|
||||||
feedbackLabelTrailing?.isActive = true
|
feedbackLabelTrailing?.isActive = true
|
||||||
layoutMarginsGuide.bottomAnchor.constraint(equalTo: feedbackLabel.bottomAnchor).isActive = true
|
layoutMarginsGuide.bottomAnchor.constraint(equalTo: feedbackLabel.bottomAnchor).isActive = true
|
||||||
|
|
||||||
setNeedsDisplay()
|
|
||||||
layoutIfNeeded()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func layoutSubviews() {
|
open override func layoutSubviews() {
|
||||||
super.layoutSubviews()
|
super.layoutSubviews()
|
||||||
|
|
||||||
entryContainer.refreshUI()
|
entryContainer.refreshUI()
|
||||||
setNeedsLayout()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Method to override.
|
/// Method to override.
|
||||||
|
|||||||
@ -68,7 +68,7 @@ import UIKit
|
|||||||
|
|
||||||
if !hideBorder {
|
if !hideBorder {
|
||||||
// Brings the other half of the line inside the view to prevent cropping.
|
// Brings the other half of the line inside the view to prevent cropping.
|
||||||
let origin = frame.origin
|
let origin = bounds.origin
|
||||||
let size = frame.size
|
let size = frame.size
|
||||||
let insetLean: CGFloat = 0.5
|
let insetLean: CGFloat = 0.5
|
||||||
borderPath.lineWidth = 1
|
borderPath.lineWidth = 1
|
||||||
@ -81,8 +81,6 @@ import UIKit
|
|||||||
borderStrokeColor.setStroke()
|
borderStrokeColor.setStroke()
|
||||||
borderPath.stroke()
|
borderPath.stroke()
|
||||||
}
|
}
|
||||||
|
|
||||||
layoutIfNeeded()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override open func setupView() {
|
override open func setupView() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user