Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 7f1905b9b1d090c837d6cba348152026f087c4ed
Author: Nader Jawad <njawad@google.com>
Date: Sun Oct 30 20:09:27 2022
Include size within GraphicsLayerScope
Relnote: "Updated GraphicsLayerScope to
expose the current size of the graphicsLayer.
This is useful for computing graphicsLayer
transformations as a function of the Composable
size."
Fixes: 181387080
Test: Added tests to GraphcisLayerTest and
GraphicsLayerScopeTest
Change-Id: If8c43dad95441ba7cc7ddc845bfa502cce688c7b
M compose/ui/ui/api/current.txt
M compose/ui/ui/api/public_plus_experimental_current.txt
M compose/ui/ui/api/restricted_current.txt
M compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/draw/GraphicsLayerTest.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/NodeCoordinator.kt
M compose/ui/ui/src/test/kotlin/androidx/compose/ui/graphics/GraphicsLayerScopeTest.kt
https://android-review.googlesource.com/2278006
Branch: androidx-main
commit 7f1905b9b1d090c837d6cba348152026f087c4ed
Author: Nader Jawad <njawad@google.com>
Date: Sun Oct 30 20:09:27 2022
Include size within GraphicsLayerScope
Relnote: "Updated GraphicsLayerScope to
expose the current size of the graphicsLayer.
This is useful for computing graphicsLayer
transformations as a function of the Composable
size."
Fixes: 181387080
Test: Added tests to GraphcisLayerTest and
GraphicsLayerScopeTest
Change-Id: If8c43dad95441ba7cc7ddc845bfa502cce688c7b
M compose/ui/ui/api/current.txt
M compose/ui/ui/api/public_plus_experimental_current.txt
M compose/ui/ui/api/restricted_current.txt
M compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/draw/GraphicsLayerTest.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/NodeCoordinator.kt
M compose/ui/ui/src/test/kotlin/androidx/compose/ui/graphics/GraphicsLayerScopeTest.kt
na...@google.com <na...@google.com> #3
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.ui:ui:1.4.0-alpha02
Description
Version used: 1.0.0-alpha12, but I've confirmed it isn't fixed in the latest version on cs.android.com
I want to access the current size in Modifier.graphicsLayer
I want to be able to write code like this
Instead, because GraphicsLayerScope doesn't have any size information, I have to write code like this
I'm filing an issue because Adam Powell suggested it on slack )