Skip to content

Reactive columns challenge #47

Open
@mikaelho

Description

@mikaelho

Having a variable number of columns, typically 2-3, with some minimum widths, the columns should get stacked vertically when they can no longer fit side by side, and still take all available horizontal space.

For example, if I have 3 equal-sized columns, they would all take about 33% of the horizontal space when all on the same row. If the display is too narrow to fit them all and one column wraps to the next row, the two columns on the first row would both have 50% of the space, and the last column now on its own row 100% of the horizontal space.

This is reasonably typical reactive layout, but I have yet to find the way to make it happen with pglet-python. There is a promising value for Stack.horizontal_align ”stretch”, but in my experiments it has not had a visible effect.

Much appreciated if you could share a way to make this happen. (Or a feature suggestion if not possible yet.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions