Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create free form box layout definition #80

Closed
MartinHowarth opened this issue Jan 6, 2020 · 2 comments
Closed

Create free form box layout definition #80

MartinHowarth opened this issue Jan 6, 2020 · 2 comments
Labels
large Large amount of work estimated

Comments

@MartinHowarth
Copy link
Owner

Allows definition based layout of boxes (in arbitrary ways rather than just rows and columns). Also add an edit mode where users can drag boxes and it prints out the new layout definition?

@MartinHowarth MartinHowarth added the large Large amount of work estimated label Jan 6, 2020
@MartinHowarth
Copy link
Owner Author

See also #60

Something like this?

Alignment = Tuple[HorizontalAlignment, VerticalAlignment, inside: bool, spacing: bool]
# inside is a bool - if True then box is placed inside parent according to alignment, otherwise placed outside of parent bounds

Box.add_child_with_alignment(child, alignment)

and

Box.add_sibling_with_alignment(sibling, alignment)

@MartinHowarth
Copy link
Owner Author

Fixed by #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large Large amount of work estimated
Projects
None yet
Development

No branches or pull requests

1 participant