Skip to content

Support margin and padding #24

@da1nerd

Description

@da1nerd

This could be implemented in several ways, but I think the simplest and most flexible way would be to create a dedicated component that you could wrap other components with.

for example, the following code could add a 10 pixel margin around the children. The margin component would automatically add constraints to it's children to create the proper margin.

component = Margin.new(10)
component.children = [
  # add children
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions