Skip to content

Commit

Permalink
Fix shifting number line for when median bars are over 0, see #6
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Feb 23, 2022
1 parent 049452f commit 8d405f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/common/view/DotPlotNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ class DotPlotNode extends Node {
dotNodeGroup.disposeElement( viewNode );
} );

// TODO from CK: Sorry for another one Sam! Design meeting is starting shortly and this was to fix the buggy
// shifting number line from when the median bars extend to 0 and
this.localBounds = this.localBounds.copy();

this.medianBarsNode = new MedianBarsNode( {
notchDirection: 'down',
barStyle: 'continuous'
Expand Down

0 comments on commit 8d405f6

Please sign in to comment.