From 4db3d428db0399f32b34e2562c1fbe0036ec6e0c Mon Sep 17 00:00:00 2001 From: PraveenKumar yeruva Date: Wed, 3 Jan 2024 13:01:52 +0530 Subject: [PATCH] Revert "updating the drawer position to offset instead of anchors (#586)" (#587) This reverts commit 6973668278b39e3004a91cd3f41de8a1e48f37dd. --- .../main/java/com/microsoft/fluentui/tokenized/drawer/Drawer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluentui_drawer/src/main/java/com/microsoft/fluentui/tokenized/drawer/Drawer.kt b/fluentui_drawer/src/main/java/com/microsoft/fluentui/tokenized/drawer/Drawer.kt index 156c1b47..218b6597 100644 --- a/fluentui_drawer/src/main/java/com/microsoft/fluentui/tokenized/drawer/Drawer.kt +++ b/fluentui_drawer/src/main/java/com/microsoft/fluentui/tokenized/drawer/Drawer.kt @@ -293,7 +293,7 @@ private class DrawerPositionProvider(val offset: IntOffset) : PopupPositionProvi layoutDirection: LayoutDirection, popupContentSize: IntSize ): IntOffset { - return IntOffset(offset.x, offset.y) + return IntOffset(anchorBounds.left + offset.x, anchorBounds.top + offset.y) } }