From dac480b059a5a30c02df8112be6e5f7a8dba44a4 Mon Sep 17 00:00:00 2001 From: Dmitry Popov Date: Wed, 22 Jan 2025 18:40:37 +0100 Subject: [PATCH] fix(Widgets): Fix widgets not visible on map --- .../Mapper/components/ui-kit/WindowManager/WindowManager.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/hooks/Mapper/components/ui-kit/WindowManager/WindowManager.tsx b/assets/js/hooks/Mapper/components/ui-kit/WindowManager/WindowManager.tsx index ceda6eaa..edd790fa 100644 --- a/assets/js/hooks/Mapper/components/ui-kit/WindowManager/WindowManager.tsx +++ b/assets/js/hooks/Mapper/components/ui-kit/WindowManager/WindowManager.tsx @@ -384,6 +384,10 @@ export const WindowManager: React.FC = ({ windows: initialWi next.position.y = container.clientHeight - next.size.height - SNAP_GAP; } + if (next.position.y < 0) { + next.position.y = 0; + } + return next; }); });