From 8d882ffc3f3ebe763dc49dfd67a9ea8782e06ec7 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Tue, 26 May 2026 11:20:44 +0200 Subject: [PATCH] fix drag/drop position of container chip --- .../widgets/tab_drag_container_target.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/weblibre/lib/features/geckoview/features/tabs/presentation/widgets/tab_drag_container_target.dart b/apps/weblibre/lib/features/geckoview/features/tabs/presentation/widgets/tab_drag_container_target.dart index 7961882b..40b54db4 100644 --- a/apps/weblibre/lib/features/geckoview/features/tabs/presentation/widgets/tab_drag_container_target.dart +++ b/apps/weblibre/lib/features/geckoview/features/tabs/presentation/widgets/tab_drag_container_target.dart @@ -73,8 +73,14 @@ class TabDragContainerTarget extends HookConsumerWidget { overlayChildBuilder: (context) => CompositedTransformFollower( link: layerLink, showWhenUnlinked: false, - child: IgnorePointer( - child: Transform.scale(scale: 1.1, child: child), + // The follower fills the Overlay (Positioned.fill semantics), + // so the preview subtree gets loose constraints to paint at its + // intrinsic size anchored to the leader's top-left. + child: Align( + alignment: AlignmentDirectional.topStart, + child: IgnorePointer( + child: Transform.scale(scale: 1.1, child: child), + ), ), ), child: CompositedTransformTarget(