Skip to content

Commit 9afac85

Browse files
authored
Merge pull request #107 from layoutBox/fix_padding
Fix top padding in method padding(_ top: CGFloat, _ left: CGFloat, _ …
2 parents 01d7556 + ffeff82 commit 9afac85

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

FlexLayout.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |spec|
33
spec.name = "FlexLayout"
4-
spec.version = "1.3.10"
4+
spec.version = "1.3.11"
55
spec.summary = "FlexLayout"
66
spec.homepage = "https://github.com/lucdion/FlexLayout.git"
77
spec.license = "MIT license"

Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- FlexLayout (1.3.6)
2+
- FlexLayout (1.3.10)
33
- Nimble (7.1.1)
44
- PinLayout (1.7.3)
55
- Quick (1.3.0)
@@ -27,7 +27,7 @@ EXTERNAL SOURCES:
2727
:path: "./"
2828

2929
SPEC CHECKSUMS:
30-
FlexLayout: 0f56895b2f65ad067a1a4012ba301224c2389cd0
30+
FlexLayout: 1f4e23de3e6b32cc75a9692ead73f7913a17a4a5
3131
Nimble: 391f07782af4b37914f9bd7b2ffbb952731b8202
3232
PinLayout: 0c2e68dba036a291ca9278aa8b799f58506f2a6d
3333
Quick: 03278013f71aa05fe9ecabc94fbcc6835f1ee76f

Sources/FlexLayout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ public final class Flex {
10071007
*/
10081008
@discardableResult
10091009
public func padding(_ top: CGFloat, _ left: CGFloat, _ bottom: CGFloat, _ right: CGFloat) -> Flex {
1010-
yoga.padding = YGValue(top)
1010+
yoga.paddingTop = YGValue(top)
10111011
yoga.paddingLeft = YGValue(left)
10121012
yoga.paddingBottom = YGValue(bottom)
10131013
yoga.paddingRight = YGValue(right)

0 commit comments

Comments
 (0)