Skip to content

Commit

Permalink
Add opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
ASalavei committed Sep 2, 2024
1 parent afcccaa commit a494e07
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@

package androidx.compose.foundation.relocation

import androidx.compose.ui.InternalComposeUiApi
import androidx.compose.ui.layout.positionInRoot
import androidx.compose.ui.node.DelegatableNode
import androidx.compose.ui.node.bringFocusIntoViewParent

/**
* Platform specific internal API to bring a rectangle into view.
*/
@OptIn(InternalComposeUiApi::class)
internal actual fun DelegatableNode.defaultBringIntoViewParent(): BringIntoViewParent =
BringIntoViewParent { childCoordinates, boundsProvider ->
val childOffset = childCoordinates.positionInRoot()
Expand Down

0 comments on commit a494e07

Please sign in to comment.