Legend Visualization Problem

Discussion created by songissimo on Apr 2, 2012
Hi everybody,
  I'm getting some problem displaying the legend of a feature layer. I create it with the template picker:

  var symbols =[0].layer.renderer.infos, function(info) {
            return {
              label: info.label,
              symbol: info.symbol

          var legend = new esri.dijit.editing.TemplatePicker({
            items: symbols,
            rows: "auto",
            columns: 2,
            style: "border-color:#9CAA9C;"
          }, "legendDiv");

But it isn't shown!!!I think it's a problem with some css rule, because using another div it is shown. The legendDiv div is located inside a sliding tab pane exactly like in this exmple:

<div dojoType="dijit.layout.ContentPane" id="legendPane" title="Legend" selected="true" >
      <div id="legendDiv"></div>

I tried also with esri.dijit.Legend and I get the same issue.

Does anyone know because I get this issue?

Thanks everybody.