We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cfec79 commit a4dc092Copy full SHA for a4dc092
src/components/legend/index.js
@@ -682,7 +682,8 @@ legend.repositionLegend = function(td, traces){
682
// Add scroll functionality
683
var legendsvg = fullLayout._infolayer.selectAll('svg.legend'),
684
scrollBox = fullLayout._infolayer.selectAll('svg.legend .scrollbox'),
685
- scrollheight = Math.min(80, legendheight);
+ plotHeight = fullLayout.height - fullLayout.margin.t - fullLayout.margin.b,
686
+ scrollheight = Math.min(plotHeight, legendheight);
687
688
scrollBox.attr('viewBox', '0 0 ' + legendwidth + ' ' + scrollheight);
689
legendsvg.node().addEventListener('wheel', scrollHandler);
0 commit comments