Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add crossaxis positioning fallback for drop-modal

Benjamin Bädorfdc434bd94fe9
diff --git a/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts b/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts
index 96e0ac9fd3a..33b2c650855 100644
--- a/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts
+++ b/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts
@@ -144,7 +144,11 @@ export class SpotDropModalComponent implements OnDestroy {
{
placement: this.alignment,
middleware: this.allowRepositioning ? [
- flip(),
+ flip({
+ mainAxis: true,
+ crossAxis: true,
+ fallbackAxisSideDirection: 'start',
+ }),
shift({ limiter: limitShift() }),
] : [],
},