Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7af4d08b authored by Jordan Demeulenaere's avatar Jordan Demeulenaere Committed by Android (Google) Code Review
Browse files

Merge "Fix size caching bug in (Horizontal|Vertical)Grid" into main

parents 5803d8ac 8bc6d805
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -116,9 +116,14 @@ private fun Grid(

        if (sizeCache.rowHeights.size != rows) {
            sizeCache.rowHeights = IntArray(rows) { 0 }
        } else {
            repeat(rows) { i -> sizeCache.rowHeights[i] = 0 }
        }

        if (sizeCache.columnWidths.size != columns) {
            sizeCache.columnWidths = IntArray(columns) { 0 }
        } else {
            repeat(columns) { i -> sizeCache.columnWidths[i] = 0 }
        }

        val totalHorizontalSpacingBetweenChildren =