updated height constraint
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
2b1bff4078
commit
6d34211042
@ -76,7 +76,7 @@ open class TextLinkCaret: Control {
|
|||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
//constraints
|
//constraints
|
||||||
heightAnchor.constraint(equalToConstant: height).isActive = true
|
heightAnchor.constraint(greaterThanOrEqualToConstant: height).isActive = true
|
||||||
|
|
||||||
let size = caretView.size!.dimensions()
|
let size = caretView.size!.dimensions()
|
||||||
caretView.frame = .init(x: 0, y: 0, width: size.width, height: size.height)
|
caretView.frame = .init(x: 0, y: 0, width: size.width, height: size.height)
|
||||||
@ -85,7 +85,6 @@ open class TextLinkCaret: Control {
|
|||||||
label.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true
|
label.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true
|
||||||
label.topAnchor.constraint(equalTo: topAnchor).isActive = true
|
label.topAnchor.constraint(equalTo: topAnchor).isActive = true
|
||||||
label.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
|
label.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -124,7 +123,7 @@ open class TextLinkCaret: Control {
|
|||||||
label.disabled = disabled
|
label.disabled = disabled
|
||||||
label.text = iconPosition == .right ? "\(updatedText) " : " \(updatedText)"
|
label.text = iconPosition == .right ? "\(updatedText) " : " \(updatedText)"
|
||||||
label.attributes = [imageAttribute]
|
label.attributes = [imageAttribute]
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user