Marcin Wisniowski
01/12/2022, 3:25 PMrequiredWidth()
but that centers it inside the parent (it overflows to both sides), where I want it left-aligned and clipped on the right.Adam Powell
01/12/2022, 3:36 PMModifier.layout {}
to write a layout modifier that permits a larger max size for the child than the incoming constraints, then place the child as desired.clip()
before your custom modifierZach Klippenstein (he/him) [MOD]
01/12/2022, 3:53 PMModifier.wrapContentSize(align = Alignment.TopLeft, unbounded = true)
on the parentMarcin Wisniowski
01/12/2022, 4:38 PMclipToBounds()
+ wrapContentSize()
worked.