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

Document start, top, end, bottom ordering convention #185

Open
LouisCAD opened this issue Apr 5, 2019 · 0 comments
Open

Document start, top, end, bottom ordering convention #185

LouisCAD opened this issue Apr 5, 2019 · 0 comments
Labels
documentation up for grabs Available for external contributions. Add a comment if you want to work on a PR.

Comments

@LouisCAD
Copy link
Owner

LouisCAD commented Apr 5, 2019

OK:

add(confirmBtn, lParams(height = wrapContent) {
    startToEndOf(skipBtn) // Start first
    endOfParent(margin = dip(8)) // No top constraint, end constraint next
    bottomOfParent() // Bottom last
})

Not OK:

add(confirmBtn, lParams(height = wrapContent) {
    bottomOfParent() // Bottom should be last
    endOfParent(margin = dip(8)) // End should be after top (or what comes before if missing)
    startToEndOf(skipBtn) // Start should be first
})
@LouisCAD LouisCAD added documentation up for grabs Available for external contributions. Add a comment if you want to work on a PR. labels Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation up for grabs Available for external contributions. Add a comment if you want to work on a PR.
Projects
None yet
Development

No branches or pull requests

1 participant