Merge branch 'mbruce/bugfixes' into 'develop'

CXTDT-470665 - Button - Text wrapping in two lines

See merge request BPHV_MIPS/vds_ios!119
This commit is contained in:
Bruce, Matt R 2023-10-04 20:36:21 +00:00
commit 2414c0052f

View File

@ -81,7 +81,7 @@ open class ButtonBase: UIButton, ViewProtocol, UserInfoable, Clickable {
public var isHighlighting = false
/// Whether the Button should handle the isHighlighted state.
open var shouldHighlight: Bool { isHighlighting == false && onClickSubscriber != nil }
open var shouldHighlight: Bool { isHighlighting == false }
/// Whether the Control is highlighted or not.
open override var isHighlighted: Bool {
@ -116,6 +116,7 @@ open class ButtonBase: UIButton, ViewProtocol, UserInfoable, Clickable {
titleLabel?.adjustsFontSizeToFitWidth = false
titleLabel?.lineBreakMode = .byTruncatingTail
titleLabel?.numberOfLines = 1
}
open func updateView() {