fix timeline popover
All checks were successful
Release / meta (push) Successful in 6s
Release / linux-build (push) Successful in 6m56s
Release / android-build (push) Successful in 16m36s
Release / release-master (push) Successful in 24s
Release / release-dev (push) Successful in 26s

This commit is contained in:
2025-12-22 17:33:33 +00:00
parent 45d543498f
commit 7feb672e7e

View File

@@ -447,13 +447,11 @@ class _ValueBlockMenu extends StatelessWidget {
final overlay = Overlay.of(context);
final renderBox = overlay?.context.findRenderObject() as RenderBox?;
if (renderBox == null) return;
// Translate from global screen coordinates into the overlay's local space
// so the menu appears where the gesture happened.
final localPosition = renderBox.globalToLocal(globalPosition);
final position = RelativeRect.fromRect(
Rect.fromLTWH(
globalPosition.dx,
globalPosition.dy,
1,
1,
),
Rect.fromLTWH(localPosition.dx, localPosition.dy, 1, 1),
Offset.zero & renderBox.size,
);