From 066517a204c728c42d7af74a7021b13f0ebe5788 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 6 Jan 2026 15:34:19 -0500 Subject: [PATCH] chore: force span card to always go above input bar (#5096) --- lib/pangea/common/utils/overlay.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/pangea/common/utils/overlay.dart b/lib/pangea/common/utils/overlay.dart index bef2fd209..fcdaaf668 100644 --- a/lib/pangea/common/utils/overlay.dart +++ b/lib/pangea/common/utils/overlay.dart @@ -131,6 +131,8 @@ class OverlayUtil { bool addBorder = true, VoidCallback? onDismiss, bool ignorePointer = false, + Alignment? targetAnchor, + Alignment? followerAnchor, }) { try { final LayerLinkAndKey layerLinkAndKey = @@ -199,10 +201,10 @@ class OverlayUtil { closePrevOverlay: closePrevOverlay, offset: offset, overlayKey: overlayKey, - targetAnchor: - hasTopOverflow ? Alignment.bottomCenter : Alignment.topCenter, - followerAnchor: - hasTopOverflow ? Alignment.topCenter : Alignment.bottomCenter, + targetAnchor: targetAnchor ?? + (hasTopOverflow ? Alignment.bottomCenter : Alignment.topCenter), + followerAnchor: followerAnchor ?? + (hasTopOverflow ? Alignment.topCenter : Alignment.bottomCenter), onDismiss: onDismiss, ignorePointer: ignorePointer, ); @@ -237,6 +239,8 @@ class OverlayUtil { transformTargetId: ChoreoConstants.inputTransformTargetKey, ignorePointer: true, isScrollable: false, + targetAnchor: Alignment.topCenter, + followerAnchor: Alignment.bottomCenter, ); }