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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add alignmentClass fix back in
Benjamin Bädorf3f0c354dc744
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.tsindex 115aa86203b..b9c94e7562b 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@@ -218,7 +218,6 @@ export class SpotDropModalComponent implements OnDestroy {const alignments = Object.values(SpotDropAlignmentOption) as SpotDropAlignmentOption[];const index = alignments.indexOf(this.alignment);const originalAlignmentClass = this.alignmentClass;- const modalBodyEl = this.modalBody.nativeElement as HTMLElement;const possibleAlignment = [...alignments.splice(index),@@ -236,6 +235,14 @@ export class SpotDropModalComponent implements OnDestroy {return spaceOnLeft && spaceOnRight && spaceOnTop && spaceOnBottom;});+ /**+ * We need to remove any residual classes left on the nativeElement after+ * calculating the possibleAlignments. The final calculated alignment+ * is applied via the `alignmentClass` function anyway.+ */+ modalBody.classList.remove(this.alignmentClass);+ modalBody.classList.add(originalAlignmentClass);+if (possibleAlignment) {this.calculatedAlignment = possibleAlignment;} else {