Skip to content

Commit

Permalink
Initialize alignment offset to 0. (it was undefined). Also handle a s…
Browse files Browse the repository at this point in the history
…mall bug with swimlane configuration not getting replaced when the plan used by a gantt chart was changed
  • Loading branch information
shefalijoshi committed Oct 17, 2024
1 parent 7f8b5e0 commit 6ab81f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/plan/components/PlanView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export default {
}
},
handleConfigurationChange(newConfiguration) {
this.configuration = this.planViewConfiguration.getConfiguration();
Object.keys(newConfiguration).forEach((key) => {
this[key] = newConfiguration[key];
});
Expand Down
2 changes: 2 additions & 0 deletions src/ui/components/TimeSystemAxis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default {
const svgWidth = ref(0);
const svgHeight = ref(0);
const axisTransform = ref('translate(0,20)');
const alignmentOffset = ref(0);
const nowMarkerStyle = reactive({
height: '0px',
left: '0px'
Expand All @@ -100,6 +101,7 @@ export default {
svgWidth,
svgHeight,
axisTransform,
alignmentOffset,
nowMarkerStyle,
openmct
};
Expand Down

0 comments on commit 6ab81f6

Please sign in to comment.