<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LayerList in a container displaying weird in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671848#M87959</link>
    <description>&lt;P&gt;Ended up adding sub Divs to get everything to work!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2025 00:19:47 GMT</pubDate>
    <dc:creator>brzt</dc:creator>
    <dc:date>2025-12-10T00:19:47Z</dc:date>
    <item>
      <title>LayerList in a container displaying weird</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671469#M87947</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm making a webmap and am running into an issue. I'm using a LayerList to produce a legend for my maps and have it inside of a container. The title for the things in the legend are written vertically&lt;/P&gt;&lt;P&gt;l&lt;/P&gt;&lt;P&gt;i&lt;/P&gt;&lt;P&gt;k&lt;/P&gt;&lt;P&gt;e&lt;/P&gt;&lt;P&gt;t&lt;/P&gt;&lt;P&gt;h&lt;/P&gt;&lt;P&gt;i&lt;/P&gt;&lt;P&gt;s&lt;/P&gt;&lt;P&gt;and is then stacking horizontally next to each other. I want to get these to instead stack vertically down? I've never had this problem before but have also never used a container with LayerList before. Snippets of relevant code are included below:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#titleLegend{&lt;BR /&gt;float: left;&lt;BR /&gt;height: 31px;&lt;BR /&gt;width: 15%;&lt;BR /&gt;height: 31px;&lt;BR /&gt;background color: black;&lt;BR /&gt;color: white;&lt;BR /&gt;font-weight:400;&lt;BR /&gt;font-size:25px&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;const legend = new LayerList({&lt;BR /&gt;container:"legendDiv",&lt;BR /&gt;view: view,&lt;BR /&gt;listItemCreatedFunction: function(event){&lt;BR /&gt;const item = event.item;&lt;BR /&gt;if (item.layer.type !=="group") {&lt;BR /&gt;item.panel = {&lt;BR /&gt;content: "legend",&lt;BR /&gt;open: true&lt;BR /&gt;};&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 03:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671469#M87947</guid>
      <dc:creator>brzt</dc:creator>
      <dc:date>2025-12-09T03:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList in a container displaying weird</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671638#M87953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/958032"&gt;@brzt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My guess is it's something to do with the width: 15% css.&amp;nbsp; Is the container wide enough to show the title horizontally.&amp;nbsp; I copied you snippet into a codepen and if I remove the width: 15%; the layer titles have more room to display horizontally.&amp;nbsp; Hard to say whats going on for sure without seeing a complete layout or repro app, but I am guessing the layer list doesn't have enough horizontal space and the titles are wrapping around to new lines.&lt;BR /&gt;&lt;A href="https://codepen.io/sagewall/pen/KwzbONW?editors=1000" target="_blank"&gt;https://codepen.io/sagewall/pen/KwzbONW?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 15:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671638#M87953</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-12-09T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList in a container displaying weird</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671837#M87958</link>
      <description>&lt;P&gt;I think the issue I'm running into is that I am calling multiple maps legend into the same legendDiv and they're stacking horizontally. Is there a way to make them stack under each other instead?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 00:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671837#M87958</guid>
      <dc:creator>brzt</dc:creator>
      <dc:date>2025-12-10T00:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList in a container displaying weird</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671848#M87959</link>
      <description>&lt;P&gt;Ended up adding sub Divs to get everything to work!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 00:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-in-a-container-displaying-weird/m-p/1671848#M87959</guid>
      <dc:creator>brzt</dc:creator>
      <dc:date>2025-12-10T00:19:47Z</dc:date>
    </item>
  </channel>
</rss>

