Skip to content

Commit

Permalink
Add support for gap, column-gap, and row-gap properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobp100 committed Dec 20, 2021
1 parent b6c71ae commit 812d4de
Show file tree
Hide file tree
Showing 28 changed files with 6,042 additions and 23 deletions.
4 changes: 4 additions & 0 deletions YogaKit/Source/YGLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ - (void)setPosition:(YGPositionType)position {
YG_VALUE_PROPERTY(maxHeight, MaxHeight)
YG_PROPERTY(CGFloat, aspectRatio, AspectRatio)

YG_VALUE_EDGE_PROPERTY(columnGap, ColumnGap, Gap, YGGapColumn)
YG_VALUE_EDGE_PROPERTY(rowGap, RowGap, Gap, YGGapRow)
YG_VALUE_EDGE_PROPERTY(gap, Gap, Gap, YGGapAll)

#pragma mark - Layout and Sizing

- (YGDirection)resolvedDirection {
Expand Down
16 changes: 16 additions & 0 deletions csharp/Facebook.Yoga/YogaGap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

namespace Facebook.Yoga
{
public enum YogaGap
{
Column,
Row,
All,
}
}
Loading

0 comments on commit 812d4de

Please sign in to comment.