-
Notifications
You must be signed in to change notification settings - Fork 1.6k
calculateBaseline(node) may return NaN if the baselineChild has not been measured #1932
Open
Description
Demo JSX Code:
<Layout config={{useWebDefaults: false}}> <Node style={{flexDirection: 'column'}}> <Node style={{flexDirection: 'row', width: 200, padding: 10, alignItems:'baseline'}}> <Node style={{ flexDirection: 'row', width: 100, height:100}}> <Node /> </Node> </Node> </Node> </Layout>
the yoga layout result :
in constrast, Chrome/Safari perform well as expected
Imagethis bug may resulting from wrong value returned by float calculateBaseline(const yoga::Node* node), if the baselineChild has not been measured, node->getLayout().measuredDimension(Dimension::Height) will return NaN value
Activity
Metadata
Metadata
Assignees
Labels
No labels