---
title: "findRootCoordinates"
description: "Walks up the [LayoutCoordinates] hierarchy to find the [LayoutCoordinates] whose
[LayoutCoordinates.parentCoordinates] is `null` and returns it. If
[LayoutCoordinates.isAttached], this will have the size of the
[ComposeView][androidx.compose.ui.platform.ComposeView]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun LayoutCoordinates.findRootCoordinates(): LayoutCoordinates
```


Walks up the `LayoutCoordinates` hierarchy to find the `LayoutCoordinates` whose
`LayoutCoordinates.parentCoordinates` is `null` and returns it. If
`LayoutCoordinates.isAttached`, this will have the size of the
`ComposeView`.



