# VerticalScrollMode.SnapScrollMatchHeight

Artifact: [androidx.glance:glance-appwidget](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/appwidget/lazy/VerticalScrollMode.kt+class:androidx.glance.appwidget.lazy.VerticalScrollMode.SnapScrollMatchHeight) Added in [1.3.0-alpha02](https://developer.android.com/jetpack/androidx/releases/glance#1.3.0-alpha02)


```
@RequiresApi(api = 3600001)
class VerticalScrollMode.SnapScrollMatchHeight : VerticalScrollMode
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/VerticalScrollMode.SnapScrollMatchHeight#SnapScrollMatchHeight(androidx.compose.ui.unit.Dp)(initialChildHeight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/VerticalScrollMode.SnapScrollMatchHeight#initialChildHeight()` How large to make a child. |

## Public constructors

### SnapScrollMatchHeight

Added in [1.3.0-alpha02](https://developer.android.com/jetpack/androidx/releases/glance#1.3.0-alpha02)

```
SnapScrollMatchHeight(initialChildHeight: Dp)
```

| Parameters |
|---|---|
| `initialChildHeight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | 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. |

## Public properties

### initialChildHeight

```
val initialChildHeight: Dp
```

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.