Commit 744c261a by Daniel Dahan

memory: updated Bar default contentViewAlignment to .any

parent 620fc2b8
...@@ -47,7 +47,7 @@ open class Bar: View { ...@@ -47,7 +47,7 @@ open class Bar: View {
} }
/// Should center the contentView. /// Should center the contentView.
open var contentViewAlignment = ContentViewAlignment.center { open var contentViewAlignment = ContentViewAlignment.any {
didSet { didSet {
layoutSubviews() layoutSubviews()
} }
......
...@@ -149,6 +149,7 @@ open class Toolbar: Bar { ...@@ -149,6 +149,7 @@ open class Toolbar: Bar {
open override func prepare() { open override func prepare() {
super.prepare() super.prepare()
zPosition = 1000 zPosition = 1000
contentViewAlignment = .center
prepareTitleLabel() prepareTitleLabel()
prepareDetailLabel() prepareDetailLabel()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment