Commit 9ad4b3dd by Daniel Dahan

Updated the layout calls for FABMenu's fabButton

parent 71297854
## 2.12.16 ## 2.12.16
* [issue-965](https://github.com/CosmicMind/Material/issues/965): Removed duplicate `prepare` call in initializer. * [issue-965](https://github.com/CosmicMind/Material/issues/965): Removed duplicate `prepare` call in initializer.
* Rework of Layout's internal process - removed an async call to layout views.
* Updated the layout calls for FABMenu's fabButton.
## 2.12.15 ## 2.12.15
......
...@@ -316,7 +316,9 @@ open class FABMenu: View { ...@@ -316,7 +316,9 @@ open class FABMenu: View {
open override func layoutSubviews() { open override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
fabButton?.frame.size = bounds.size fabButton?.frame = bounds
fabButton?.setNeedsLayout()
fabButton?.layoutIfNeeded()
spring.baseSize = bounds.size spring.baseSize = bounds.size
} }
......
...@@ -639,13 +639,6 @@ fileprivate extension Layout { ...@@ -639,13 +639,6 @@ fileprivate extension Layout {
view.updateConstraints() view.updateConstraints()
view.setNeedsLayout() view.setNeedsLayout()
view.layoutIfNeeded() view.layoutIfNeeded()
Motion.async {
view.updateConstraintsIfNeeded()
view.updateConstraints()
view.setNeedsLayout()
view.layoutIfNeeded()
}
} }
/** /**
......
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