adding support for min/max-width/height
Summary: Adding controls for min/max height/width to the playground Reviewed By: emilsjolander Differential Revision: D7988400 fbshipit-source-id: bae487e2504906788552d6c1a29ed74c39cb5ac0
This commit is contained in:
committed by
Facebook Github Bot
parent
3564ccf6e4
commit
5dbe3c128b
@@ -19,18 +19,22 @@ import type {
|
||||
Yoga$JustifyContent,
|
||||
Yoga$FlexDirection,
|
||||
Yoga$FlexWrap,
|
||||
Yoga$YogaPositionType,
|
||||
Yoga$PositionType,
|
||||
} from 'yoga-layout';
|
||||
|
||||
export type LayoutRecordT = RecordOf<{
|
||||
width?: ?number,
|
||||
height?: ?number,
|
||||
minWidth?: ?number,
|
||||
minHeight?: ?number,
|
||||
maxWidth?: ?number,
|
||||
maxHeight?: ?number,
|
||||
justifyContent?: Yoga$JustifyContent,
|
||||
padding: PositionRecordT,
|
||||
border: PositionRecordT,
|
||||
margin: PositionRecordT,
|
||||
position: PositionRecordT,
|
||||
positionType: Yoga$YogaPositionType,
|
||||
positionType: Yoga$PositionType,
|
||||
alignItems?: Yoga$Align,
|
||||
alignSelf?: Yoga$Align,
|
||||
alignContent?: Yoga$Align,
|
||||
@@ -51,6 +55,10 @@ export type LayoutRecordT = RecordOf<{
|
||||
const r: LayoutRecordT = Record({
|
||||
width: 'auto',
|
||||
height: 'auto',
|
||||
minWidth: 0,
|
||||
minHeight: 0,
|
||||
maxWidth: 'none',
|
||||
maxHeight: 'none',
|
||||
justifyContent: yoga.JUSTIFY_FLEX_START,
|
||||
alignItems: yoga.ALIGN_STRETCH,
|
||||
alignSelf: yoga.ALIGN_AUTO,
|
||||
|
Reference in New Issue
Block a user