Fix comment typo 'layed out' to 'laid out'

This commit is contained in:
Pearce Liang
2021-01-18 18:20:09 +08:00
committed by GitHub
parent 584dfe961e
commit eb0ab64804

View File

@@ -2698,7 +2698,7 @@ static void YGJustifyMainAxis(
// but the algorithm below assumes a default of 'column'. // but the algorithm below assumes a default of 'column'.
// //
// Input parameters: // Input parameters:
// - node: current node to be sized and layed out // - node: current node to be sized and laid out
// - availableWidth & availableHeight: available size to be used for sizing // - availableWidth & availableHeight: available size to be used for sizing
// the node or YGUndefined if the size is not available; interpretation // the node or YGUndefined if the size is not available; interpretation
// depends on layout flags // depends on layout flags
@@ -2710,7 +2710,7 @@ static void YGJustifyMainAxis(
// for explanation) // for explanation)
// - performLayout: specifies whether the caller is interested in just the // - performLayout: specifies whether the caller is interested in just the
// dimensions of the node or it requires the entire node and its subtree to // dimensions of the node or it requires the entire node and its subtree to
// be layed out (with final positions) // be laid out (with final positions)
// //
// Details: // Details:
// This routine is called recursively to lay out subtrees of flexbox // This routine is called recursively to lay out subtrees of flexbox
@@ -3831,7 +3831,7 @@ bool YGLayoutNodeInternal(
// Determine whether the results are already cached. We maintain a separate // Determine whether the results are already cached. We maintain a separate
// cache for layouts and measurements. A layout operation modifies the // cache for layouts and measurements. A layout operation modifies the
// positions and dimensions for nodes in the subtree. The algorithm assumes // positions and dimensions for nodes in the subtree. The algorithm assumes
// that each node gets layed out a maximum of one time per tree layout, but // that each node gets laid out a maximum of one time per tree layout, but
// multiple measurements may be required to resolve all of the flex // multiple measurements may be required to resolve all of the flex
// dimensions. We handle nodes with measure functions specially here because // dimensions. We handle nodes with measure functions specially here because
// they are the most expensive to measure, so it's worth avoiding redundant // they are the most expensive to measure, so it's worth avoiding redundant