Fix item popup animation misalignment
This commit is contained in:
@@ -202,7 +202,7 @@ fun ItemPopup(origin: Rect, searchable: Searchable, onDismissRequest: () -> Unit
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(horizontal = 16.dp)
|
.padding(horizontal = 16.dp)
|
||||||
.absoluteOffset(
|
.absoluteOffset(
|
||||||
x = ((1 - animationProgress) * origin.left).toDp() - 16.dp * (1 - animationProgress),
|
x = ((1 - animationProgress) * origin.left).toDp() - 20.dp * (1 - animationProgress),
|
||||||
)
|
)
|
||||||
.wrapContentSize()
|
.wrapContentSize()
|
||||||
.padding(4.dp)
|
.padding(4.dp)
|
||||||
|
|||||||
Reference in New Issue
Block a user