diff --git a/src/essence/Tools/Legend/LegendTool.js b/src/essence/Tools/Legend/LegendTool.js index 20f30806..07c7c26d 100644 --- a/src/essence/Tools/Legend/LegendTool.js +++ b/src/essence/Tools/Legend/LegendTool.js @@ -225,9 +225,11 @@ function drawLegends(tools, _legend, layerUUID, display_name, opacity) { .style('height', '100%') .style('line-height', '19px') .style('font-size', '14px') - .style('overflow', 'auto') + .style('overflow', 'hidden') .style('white-space', 'nowrap') .style('max-width', '270px') + .style('text-overflow', 'ellipsis') + .attr('title', _legend[d].value) .text(_legend[d].value) } else if (shape == 'continuous' || shape == 'discreet') { if (lastShape != shape) {