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:
commit
2414c0052f
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user