TP-25794 | grid renderer fix (#28)
This commit is contained in:
committed by
GitHub Enterprise
parent
02f4345091
commit
35afcb77a6
@@ -121,13 +121,13 @@
|
||||
"width": "MATCH_PARENT",
|
||||
"height": "WRAP_CONTENT",
|
||||
"spanCount": 3,
|
||||
"itemSpacing": 8,
|
||||
"itemSpacing": 32,
|
||||
"backgroundColor": "#ABABAB",
|
||||
"padding": {
|
||||
"start": 8,
|
||||
"end": 8,
|
||||
"top": 8,
|
||||
"bottom": 8
|
||||
"start": 16,
|
||||
"end": 16,
|
||||
"top": 32,
|
||||
"bottom": 32
|
||||
}
|
||||
},
|
||||
"childrenViews": [
|
||||
|
||||
@@ -76,11 +76,8 @@ class GridRenderer(
|
||||
.fillMaxWidth()
|
||||
.weight(1f)
|
||||
.padding(
|
||||
start = if (columnId == 0) {
|
||||
0.dp
|
||||
} else {
|
||||
(property.itemSpacing ?: 0).dp
|
||||
},
|
||||
start = ((property.itemSpacing ?: 0) / 2).dp,
|
||||
end = ((property.itemSpacing ?: 0) / 2).dp,
|
||||
top = if (rowId == 0) {
|
||||
0.dp
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user