Skip to content

Commit

Permalink
Merge branch 'mrc-5967' of github.com:mrc-ide/wodin into mrc-5970
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Kusumgar committed Nov 6, 2024
2 parents 71e7585 + 3f9f497 commit 788bc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/src/store/graphs/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getters: GraphsGetters & GetterTree<GraphsState, AppState> = {
let maxVariableLength = 0;
const variables = graphsGetters[GraphsGetter.allSelectedVariables];
for (let i = 0; i < variables.length; i++) {
maxVariableLength = Math.max(maxVariableLength, variables[i]);
maxVariableLength = Math.max(maxVariableLength, variables[i].length);
}
return maxVariableLength * LEGEND_WIDTH_PER_CHAR + LEGEND_LINE_PADDING;
}
Expand Down

0 comments on commit 788bc5a

Please sign in to comment.