fix(Widgets): Fix widgets not visible on map

This commit is contained in:
Dmitry Popov
2025-01-22 18:40:37 +01:00
parent 5886fff753
commit dac480b059

View File

@@ -384,6 +384,10 @@ export const WindowManager: React.FC<WindowManagerProps> = ({ windows: initialWi
next.position.y = container.clientHeight - next.size.height - SNAP_GAP; next.position.y = container.clientHeight - next.size.height - SNAP_GAP;
} }
if (next.position.y < 0) {
next.position.y = 0;
}
return next; return next;
}); });
}); });