fixed bug in app when swapping back and forth between sizes
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
bf4ab9ab1c
commit
0dae2d36cb
@ -162,15 +162,14 @@ extension Tabs {
|
|||||||
labelBottomConstraint?.constant = -otherSpace
|
labelBottomConstraint?.constant = -otherSpace
|
||||||
|
|
||||||
//label properties
|
//label properties
|
||||||
|
label.textStyle = textStyle
|
||||||
label.text = text
|
label.text = text
|
||||||
label.surface = surface
|
label.surface = surface
|
||||||
label.textStyle = textStyle
|
|
||||||
label.textAlignment = textAlignment.value
|
label.textAlignment = textAlignment.value
|
||||||
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
|
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
|
||||||
setNeedsLayout()
|
setNeedsLayout()
|
||||||
layoutIfNeeded()
|
layoutIfNeeded()
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// Used to update any Accessibility properties.
|
/// Used to update any Accessibility properties.
|
||||||
open override func updateAccessibility() {
|
open override func updateAccessibility() {
|
||||||
|
|||||||
@ -111,7 +111,7 @@ open class Tabs: View {
|
|||||||
open var selectedIndex: Int = 0 { didSet { setNeedsUpdate() } }
|
open var selectedIndex: Int = 0 { didSet { setNeedsUpdate() } }
|
||||||
|
|
||||||
/// Determines the size of the Tabs TextStyle
|
/// Determines the size of the Tabs TextStyle
|
||||||
open var size: Size = .medium { didSet { setNeedsUpdate() } }
|
open var size: Size = .medium { didSet { updateTabItems() } }
|
||||||
|
|
||||||
/// When true, Tabs will be sticky to top of page, when orientation is vertical.
|
/// When true, Tabs will be sticky to top of page, when orientation is vertical.
|
||||||
open var sticky: Bool = false { didSet { setNeedsUpdate() } }
|
open var sticky: Bool = false { didSet { setNeedsUpdate() } }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user