Skip to content

Commit

Permalink
Align y-axis label to zoom button group - see #311
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-blackman committed Apr 23, 2024
1 parent 6c6e4ec commit 7f08aea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/common/view/HistogramNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ export default class HistogramNode extends Node {
horizontalAxisLabelProxy.top = chartNodeProxy.bottom + CHART_UI_MARGIN;
} );

ManualConstraint.create( this, [ this.chartNode, this.chartBackground, verticalAxisLabel ], ( chartNodeProxy, chartBackgroundProxy ) => {
verticalAxisLabel.right = chartNodeProxy.left - CHART_UI_MARGIN;
verticalAxisLabel.centerY = chartBackgroundProxy.centerY;
ManualConstraint.create( this, [ this.chartBackground, verticalAxisLabel, zoomButtonGroup ], ( chartBackgroundProxy, verticalAxisLabelProxy, zoomButtonGroupProxy ) => {
verticalAxisLabelProxy.centerX = zoomButtonGroupProxy.centerX;
verticalAxisLabelProxy.centerY = chartBackgroundProxy.centerY;
} );

ManualConstraint.create( this, [ this.chartBackground, toggleHistogramSoundButton ], ( chartBackgroundProxy, playHistogramSoundButtonProxy ) => {
Expand Down

0 comments on commit 7f08aea

Please sign in to comment.