[bug] Artboard with height fit-content stays at minHeight when a child has flex-grow:1 #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected: A column artboard with
height: fit-contentgrows to fit its children, as in CSS, even when one child hasflex-grow:1.Actual: It stays at its
minHeight(844) and clips the content. SettingminHeight: 0andheight: fit-contentagain changes nothing. It only grows after settingflexGrow: 0on the child.Repro: create_artboard {width:"390px", height:"fit-content", minHeight:"844px"}; write_html
<div style="display:flex;flex-direction:column;flex-grow:1"><div style="height:1200px"></div></div>; get_node_info shows height 844.Workaround: set
flexGrow: 0on the child, then setheight: "fit-content"on the artboard again.Impact: Mobile screens get clipped without warning, and a growing content area plus a pinned footer can't be built.
Filed from PaperCraft 0.7.2 (macos).