# Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed

**Code:** `measured with an infinity maximum height` · **Category:** Android · **Seen on:** Android

A LazyColumn (or verticalScroll) is placed inside another vertically scrolling container, so it gets infinite height.

## Meaning

Nested scrolling in the same direction gives the inner list unbounded height. Use one LazyColumn with multiple item blocks, or give the inner list a fixed/weighted height.

## Common causes

- LazyColumn inside Column(Modifier.verticalScroll)
- LazyColumn inside another LazyColumn item
- Scrollable inside a parent with wrapContent height in the same direction

## Quick fix

1. Merge into a single LazyColumn with item {} / items {}
2. Give the inner list Modifier.height(...) or weight(1f)
3. Remove the outer verticalScroll

## Detailed fix by platform

### Kotlin

1. 

```kotlin
LazyColumn {
    item { Header() }
    items(users) { UserRow(it) }
    item { Footer() }
}
```


## How to diagnose

1. **Hierarchy** — Parent scroll containers
2. **Modifiers** — Height constraints

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/android/compose-infinity-maximum-height)
