fixed bug
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
289353a443
commit
1044282c33
@ -436,9 +436,9 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
|
|||||||
containerView.removeDropShadows()
|
containerView.removeDropShadows()
|
||||||
}
|
}
|
||||||
|
|
||||||
containerView.dropShadowLayers?.forEach { $0.frame = bounds }
|
containerView.dropShadowLayers?.forEach { $0.frame = containerView.bounds }
|
||||||
containerView.gradientLayers?.forEach { $0.frame = bounds }
|
containerView.gradientLayers?.forEach { $0.frame = containerView.bounds }
|
||||||
|
|
||||||
if width != nil || height != nil {
|
if width != nil || height != nil {
|
||||||
var containerViewWidth: CGFloat?
|
var containerViewWidth: CGFloat?
|
||||||
var containerViewHeight: CGFloat?
|
var containerViewHeight: CGFloat?
|
||||||
|
|||||||
@ -714,7 +714,7 @@ extension LayoutConstraintable {
|
|||||||
let constraints = superview.constraints
|
let constraints = superview.constraints
|
||||||
var leadingPinned = false
|
var leadingPinned = false
|
||||||
var trailingPinned = false
|
var trailingPinned = false
|
||||||
|
|
||||||
for constraint in constraints {
|
for constraint in constraints {
|
||||||
if (constraint.firstItem as? UIView == view && constraint.firstAttribute == .leading && constraint.relation == .equal && constraint.secondItem as? UIView == superview) ||
|
if (constraint.firstItem as? UIView == view && constraint.firstAttribute == .leading && constraint.relation == .equal && constraint.secondItem as? UIView == superview) ||
|
||||||
(constraint.secondItem as? UIView == view && constraint.secondAttribute == .leading && constraint.relation == .equal && constraint.firstItem as? UIView == superview) ||
|
(constraint.secondItem as? UIView == view && constraint.secondAttribute == .leading && constraint.relation == .equal && constraint.firstItem as? UIView == superview) ||
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user