Splitties icon indicating copy to clipboard operation
Splitties copied to clipboard

Document start, top, end, bottom ordering convention

Open LouisCAD opened this issue 6 years ago • 0 comments

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 avatar Apr 05 '19 07:04 LouisCAD