Skip to content

Commit

Permalink
Merge pull request #929 from geoadmin/bug-PB-660-profile-size
Browse files Browse the repository at this point in the history
PB-660: Fix elevation profile resize
  • Loading branch information
ltshb authored Jun 18, 2024
2 parents ebe5946 + af7d5da commit 4ada0d1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/modules/infobox/components/FeatureElevationProfilePlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
@mouseenter="startPositionTracking"
@mouseleave="stopPositionTracking"
>
<LineChart
ref="chart"
:data="chartJsData"
:options="chartJsOptions"
class="profile-graph-container flex-grow-1"
data-cy="profile-graph"
@mouseleave="clearHoverPosition"
@contextmenu.prevent="resetZoom"
/>
<div class="chart-container position-relative w-100">
<LineChart
ref="chart"
:data="chartJsData"
:options="chartJsOptions"
class="profile-graph-container"
data-cy="profile-graph"
@mouseleave="clearHoverPosition"
@contextmenu.prevent="resetZoom"
/>
</div>
<div
v-show="pointBeingHovered && track"
ref="profileTooltip"
Expand Down Expand Up @@ -345,6 +347,7 @@ export default {
return {
animation: true,
responsive: true,
maintainAspectRatio: false,
plugins: {
zoom: this.chartJsZoomOptions,
legend: {
Expand Down

0 comments on commit 4ada0d1

Please sign in to comment.