Lona / Lona

A tool for defining design systems and using them to generate cross-platform UI code, Sketch files, and other artifacts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Layout] Text layer siblings may have incorrect widths

dabbott opened this issue · comments

Expected Behavior

In the case of two text layer siblings in a horizontal parent where:

  • the first is "Fit Content" width
  • the second is "Fill" width
    the first should shrink to the text's intrinsic size, while the second should expand to fill the parent.

Current Behavior

The first fills the remainder of the space, and the second fits the text's intrinsic size.

Workaround

Create a wrapper view around the second "Fill" text. The view should have "Fill" width.

E.g. the disclosure arrows in the LayoutInspector .component have this extra wrapper