TP-25794 | grid renderer fix (#28)

This commit is contained in:
Maila Rajanikanth
2023-04-19 12:57:22 +05:30
committed by GitHub Enterprise
parent 02f4345091
commit 35afcb77a6
2 changed files with 7 additions and 10 deletions

View File

@@ -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": [

View File

@@ -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 {