MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isStretchAlign

Function isStretchAlign

src/native-ts/yoga-layout/index.ts:2284–2292  ·  view source on GitHub ↗
(child: Node)

Source from the content-addressed store, hash-verified

2282}
2283
2284function 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
2294function resolveChildAlign(parent: Node, child: Node): Align {
2295 return child.style.alignSelf === Align.Auto

Callers 1

computeFlexBasisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected