(child: Node)
| 2282 | } |
| 2283 | |
| 2284 | function isStretchAlign(child: Node): boolean { |
| 2285 | const p = child.parent |
| 2286 | if (!p) return false |
| 2287 | const align = |
| 2288 | child.style.alignSelf === Align.Auto |
| 2289 | ? p.style.alignItems |
| 2290 | : child.style.alignSelf |
| 2291 | return align === Align.Stretch |
| 2292 | } |
| 2293 | |
| 2294 | function resolveChildAlign(parent: Node, child: Node): Align { |
| 2295 | return child.style.alignSelf === Align.Auto |