Skip to content

Commit

Permalink
show right edge when axis with QTLs is split
Browse files Browse the repository at this point in the history
axis-2d.js : positionRightEdge() : call .show() if .extended and path is not yet rendered
  • Loading branch information
Don-Isdale committed Aug 21, 2024
1 parent c70c3b1 commit 1bb4194
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/app/components/axis-2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,15 @@ export default Component.extend(Evented, AxisEvents, {
p = axisUse.selectAll('g.axis-use > path')
// .transition().duration(transitionEnable * 1000)
.attr("transform",function(d) {return "translate(" + (width) + ",0)";});

/** An axis displaying a QTL dataset has <g.axis-use> (.is2d is true);
* if it is then split (.extended becomes true)
* axis-2d:didInsertElement() : show() is not called, so pick that up here.
*/
if (this.get('axis1d.extended') && ! p.size() ) {
later(() => this.show());
}

dLog('positionRightEdgeEffect', axisUse.node(), width, p.node());
}
}
Expand Down

0 comments on commit 1bb4194

Please sign in to comment.