Files
Forge-Engine/screens/rendering/parent_flex_direction.py
T
williamandwilliam 3f4ebc4527
Build and deploy / build-and-push (push) Successful in 17s
Build and deploy / deploy (push) Successful in 10s
first commit
2026-08-21 16:23:49 +02:00

10 lines
477 B
Python

def _parent_flex_direction(parent_el):
"""Sens de la disposition interne d'un conteneur/répéteur/groupe de
champs (voir le réglage "Disposition interne"), ou None s'il est en
empilement libre (pas de display:flex) — utilisé pour adapter la taille
par défaut de ses enfants (voir _style_string)."""
style = (parent_el or {}).get("style") or {}
if style.get("display") != "flex":
return None
return style.get("flex-direction") or "row"