-
-
Notifications
You must be signed in to change notification settings - Fork 0
Support margin and padding #24
Copy link
Copy link
Open
Labels
ui:componentA visual componentA visual component
Description
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
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ui:componentA visual componentA visual component