Skip to content

Commit

Permalink
Fix size
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Nov 18, 2019
1 parent dce4802 commit dcbdd78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TextureSwiftSupport/MethodChain.swift
Expand Up @@ -205,10 +205,10 @@ public struct SizeModifier: ModifierType {

public func modify(element: ASLayoutElement) -> ASLayoutElement {
width.map {
element.style.minWidth = $0
element.style.width = $0
}
height.map {
element.style.minHeight = $0
element.style.height = $0
}
return element
}
Expand All @@ -231,10 +231,10 @@ public struct MinSizeModifier: ModifierType {

public func modify(element: ASLayoutElement) -> ASLayoutElement {
minWidth.map {
element.style.minWidth = $0
element.style.width = $0
}
minHeight.map {
element.style.minHeight = $0
element.style.height = $0
}
return element
}
Expand Down

0 comments on commit dcbdd78

Please sign in to comment.