Skip to content

Commit 9108ea9

Browse files
eriedclaude
andcommitted
Inspect tab: weight(1f) on byte grid so the bottom row isn't clipped
LazyVerticalGrid was using fillMaxSize() inside a Column, which let it request more height than the column had available, cropping the last row. weight(1f) claims the leftover height after the headers exactly, so all 16 rows of the 96-byte body fit on screen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3515c82 commit 9108ea9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

app/src/main/java/com/eried/eucplanet/diagnostics/WheelDiagnosticsDialog.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,11 +706,14 @@ private fun InspectTab(vm: WheelDiagnosticsViewModel) {
706706
return@Column
707707
}
708708

709-
// 6-column grid of byte cells. Lazy so 96-byte bodies don't slow
710-
// down recomposition when the underlying frame stream is at 5 Hz.
709+
// 6-column grid of byte cells. weight(1f) claims the leftover Column
710+
// height so the bottom row isn't clipped — the earlier fillMaxSize
711+
// approach was reading "as much as you want" rather than "exactly
712+
// the leftover after headers", which let the grid request more than
713+
// the column had and the last row was cropped.
711714
LazyVerticalGrid(
712715
columns = GridCells.Fixed(6),
713-
modifier = Modifier.fillMaxSize()
716+
modifier = Modifier.weight(1f).fillMaxWidth()
714717
) {
715718
items(latestBytes.size) { off ->
716719
val v = latestBytes[off]

0 commit comments

Comments
 (0)