Skip to content

Commit

Permalink
plotter: Fix position of the title background
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Feb 21, 2025
1 parent 32dad02 commit e84b64c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/widgets/Plotter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ const renderCanvas = (): void => {
if (widget.value.options.showTitle && widget.value.options.dataLakeVariableId) {
const variable = availableDataLakeVariables.value.find((v) => v.id === widget.value.options.dataLakeVariableId)
if (variable) {
ctx.textBaseline = 'top'
drawText(ctx, variable.name, 10, 10)
drawText(ctx, variable.name, 10, 26)
ctx.textBaseline = 'bottom'
}
}
Expand Down

0 comments on commit e84b64c

Please sign in to comment.