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

developer wants sizes computed by the calc functions to automatically account for gutters and padding. #21

Open
jumblerg opened this issue Dec 3, 2016 · 0 comments
Assignees
Labels

Comments

@jumblerg
Copy link
Member

jumblerg commented Dec 3, 2016

the parent is responsible for layout via the alignment, padding, and gutter attributes. the gutter attribute in particular is implemented by adding a negative margin to the parent itself and applying padding between the middle and outer elements of its children to add space between them. when a calc function is used to set the width or height of a child, eg :sh (- (r 1 1) (* 4 10)), it will currently not produce the expected result unless it also adjusted to accommodate these implementation details via (- (* num-gutters gutter-size) gutter-size).

@jumblerg jumblerg self-assigned this Dec 3, 2016
@jumblerg jumblerg added the bug label Dec 3, 2016
@jumblerg jumblerg added this to the 1.0 milestone Dec 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant