CXTDT-427165 - Text Link Caret - Container should not have left/right padding

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-06-28 10:01:44 -05:00
parent 31f64dbc8c
commit 97b6942127
2 changed files with 6 additions and 8 deletions

View File

@ -89,14 +89,7 @@ open class TextLinkCaret: ButtonBase {
//--------------------------------------------------
override open var intrinsicContentSize: CGSize {
//get the labels size, if not the button
let size = titleLabel?.intrinsicContentSize ?? super.intrinsicContentSize
var itemWidth = size.width
if let caretWidth = imageAttribute?.width {
itemWidth += caretWidth
}
return CGSize(width: itemWidth, height: size.height)
return titleLabel?.intrinsicContentSize ?? super.intrinsicContentSize
}
open override func updateView() {

View File

@ -1,3 +1,8 @@
1.0.26
=======
- CXTDT-426626 - Toggle - Disabled "on" state
- CXTDT-427165 - Text Link Caret - Container should not have left/right padding
1.0.25
=======
- TEMPORARY: Added BaselineOffset, LineSpacing to TextStyle