Add min/max in YogaRecord
Summary: Add min/max in YogaRecord Reviewed By: emilsjolander Differential Revision: D6998533 fbshipit-source-id: 4613c99bd3a4cb3b8fbe577909157b25f3bef9c7
This commit is contained in:
committed by
Facebook Github Bot
parent
1b66b5d941
commit
69242938f7
@@ -107,6 +107,10 @@ export default class YogaNode extends Component<Props, State> {
|
||||
const root = Node.create();
|
||||
root.setWidth(layoutDefinition.width);
|
||||
root.setHeight(layoutDefinition.height);
|
||||
root.setMinWidth(layoutDefinition.minWidth);
|
||||
root.setMaxWidth(layoutDefinition.maxWidth);
|
||||
root.setMinHeight(layoutDefinition.minHeight);
|
||||
root.setMaxHeight(layoutDefinition.maxHeight);
|
||||
root.setJustifyContent(layoutDefinition.justifyContent);
|
||||
root.setAlignItems(layoutDefinition.alignItems);
|
||||
root.setAlignSelf(layoutDefinition.alignSelf);
|
||||
|
Reference in New Issue
Block a user