@@ -42,7 +42,7 @@ import androidx.compose.ui.input.pointer.PointerEventPass.Initial
4242import androidx.compose.ui.layout.LayoutCoordinates
4343import androidx.compose.ui.layout.globalBounds
4444import androidx.compose.ui.node.Ref
45- import androidx.compose.ui.onPositioned
45+ import androidx.compose.ui.onGloballyPositioned
4646import androidx.compose.ui.platform.ConfigurationAmbient
4747import androidx.compose.ui.platform.ViewAmbient
4848import androidx.compose.ui.res.stringResource
@@ -76,8 +76,8 @@ import com.squareup.sample.R.string
7676 val rootView = ViewAmbient .current
7777
7878 /* *
79- * [androidx.ui.core .LayoutCoordinates.globalBounds] corresponds to the coordinates in the root
80- * Android view hosting the composition.
79+ * [androidx.compose. ui.layout .LayoutCoordinates.globalBounds] corresponds to the coordinates in
80+ * the root Android view hosting the composition.
8181 */
8282 val globalBounds = remember { Ref <Rect >() }
8383
@@ -110,7 +110,7 @@ import com.squareup.sample.R.string
110110 modifier = Modifier
111111 .height(previewHeight)
112112 .aspectRatio(screenRatio)
113- .onPositioned (onPreviewCoordinates)
113+ .onGloballyPositioned (onPreviewCoordinates)
114114 ) {
115115 // Preview the samples with a light theme, since that's what most of them use.
116116 MaterialTheme (lightColors()) {
0 commit comments