@@ -42,10 +42,11 @@ const RowWrapper = styled(Row)<{$style: ResponsiveLayoutRowStyleType}>`
42
42
const ColWrapper = styled ( Col ) < {
43
43
$style : ResponsiveLayoutColStyleType ,
44
44
$minWidth ?: string ,
45
+ $matchColumnsHeight : boolean ,
45
46
} > `
46
47
min-width: ${ ( props ) => props . $minWidth } ;
47
48
> div {
48
- height: 100%;
49
+ height: ${ ( props ) => props . $matchColumnsHeight ? ' 100%' : 'auto' } ;
49
50
}
50
51
` ;
51
52
@@ -58,6 +59,7 @@ const childrenMap = {
58
59
} ) ,
59
60
autoHeight : AutoHeightControl ,
60
61
rowBreak : withDefault ( BoolControl , false ) ,
62
+ matchColumnsHeight : withDefault ( BoolControl , false ) ,
61
63
rowStyle : withDefault ( styleControl ( ResponsiveLayoutRowStyle ) , { } ) ,
62
64
columnStyle : withDefault ( styleControl ( ResponsiveLayoutColStyle ) , { } ) ,
63
65
columnPerRowLG : withDefault ( NumberControl , 4 ) ,
@@ -91,6 +93,7 @@ const ResponsiveLayout = (props: ResponsiveLayoutProps) => {
91
93
containers,
92
94
dispatch,
93
95
rowBreak,
96
+ matchColumnsHeight,
94
97
rowStyle,
95
98
columnStyle,
96
99
columnPerRowLG,
@@ -135,6 +138,7 @@ const ResponsiveLayout = (props: ResponsiveLayoutProps) => {
135
138
xs = { 24 / ( noOfColumns < columnPerRowSM ? noOfColumns : columnPerRowSM ) }
136
139
$style = { columnCustomStyle }
137
140
$minWidth = { column . minWidth }
141
+ $matchColumnsHeight = { matchColumnsHeight }
138
142
>
139
143
< ColumnContainer
140
144
layout = { containerProps . layout . getView ( ) }
@@ -177,6 +181,9 @@ export const ResponsiveLayoutBaseComp = (function () {
177
181
{ children . rowBreak . propertyView ( {
178
182
label : trans ( "responsiveLayout.rowBreak" )
179
183
} ) }
184
+ { children . matchColumnsHeight . propertyView ( {
185
+ label : trans ( "responsiveLayout.matchColumnsHeight" )
186
+ } ) }
180
187
</ Section >
181
188
< Section name = { trans ( "responsiveLayout.columnsPerRow" ) } >
182
189
{ children . columnPerRowLG . propertyView ( {
0 commit comments