---
title: "VerticalScrollMode.SnapScrollMatchHeight"
description: "Items will snap into place and match the height of the parent view."
type: "class"
lastmod: "2026-05-20T01:13:53.022123Z"
---
## API Reference

> Source set: Android

```kotlin
@RequiresApi(api = Build.VERSION_CODES_FULL.BAKLAVA_1)
public class SnapScrollMatchHeight(public val initialChildHeight: Dp) : VerticalScrollMode
```

Items will snap into place and match the height of the parent view.

#### Parameters

| | |
| --- | --- |
| initialChildHeight | How large to make a child. This value is used before a measure pass has been run. The container will always try to make the child match its height. Pass in the intended height of the parent container here. |
