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
Handle case that the resizer is dragged farther than the element can grow (because of the min-width of the other element).
Henriette Dingerfa6f265ff14b
diff --git a/frontend/src/app/components/resizer/wp-resizer.component.ts b/frontend/src/app/components/resizer/wp-resizer.component.tsindex b4138f7ea8c..812c2b77410 100644--- a/frontend/src/app/components/resizer/wp-resizer.component.ts+++ b/frontend/src/app/components/resizer/wp-resizer.component.ts@@ -114,6 +114,14 @@ export class WpResizerDirective implements OnInit, OnDestroy {this.moving = true;+ // In case we dragged the resizer farther than the element can actually grow,+ // we reset it to the actual width at the start of the new resizing+ let localStorageValue = this.parseLocalStorageValue();+ let actualElementWidth = this.resizingElement.offsetWidth;+ if (localStorageValue && localStorageValue > actualElementWidth) {+ this.elementWidth = actualElementWidth;+ }+// Necessary to encapsulate this to be able to remove the eventlistener laterthis.mouseMoveHandler = this.resizeElement.bind(this, this.resizingElement);