Fix item popup animation misalignment
This commit is contained in:
parent
d56da25b02
commit
5da3dcd06c
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user