<?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 Formatting the space between widgits in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655001#M61082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am putting several widgets in my mapView. Everything works fine, but I have noticed there is a gap in-between the widgets that I didn't define. Is there a way to change how big the space is? Here is the code I am using, nothing fancy:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //LayerListWidget initialization&lt;BR /&gt; var layerList = new LayerList({&lt;BR /&gt; view: view,&lt;BR /&gt; });&lt;BR /&gt; view.ui.add(layerList, "top-right");&lt;/P&gt;&lt;P&gt;//initialization of the basemapGallery widget&lt;BR /&gt; var basemapGallery = new BasemapGallery({&lt;BR /&gt; view: view,&lt;BR /&gt; });&lt;BR /&gt; view.ui.add(basemapGallery, {&lt;BR /&gt; position: "top-right"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;//initializing the Scale Bar widget&lt;BR /&gt; var scaleBar = new ScaleBar({&lt;BR /&gt; view: view,&lt;BR /&gt; unit: "non-metric"&lt;BR /&gt; });&lt;BR /&gt; view.ui.add(scaleBar, {&lt;BR /&gt; position: "top-right"&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 15:24:08 GMT</pubDate>
    <dc:creator>GregSalvador</dc:creator>
    <dc:date>2017-08-22T15:24:08Z</dc:date>
    <item>
      <title>Formatting the space between widgits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655001#M61082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am putting several widgets in my mapView. Everything works fine, but I have noticed there is a gap in-between the widgets that I didn't define. Is there a way to change how big the space is? Here is the code I am using, nothing fancy:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //LayerListWidget initialization&lt;BR /&gt; var layerList = new LayerList({&lt;BR /&gt; view: view,&lt;BR /&gt; });&lt;BR /&gt; view.ui.add(layerList, "top-right");&lt;/P&gt;&lt;P&gt;//initialization of the basemapGallery widget&lt;BR /&gt; var basemapGallery = new BasemapGallery({&lt;BR /&gt; view: view,&lt;BR /&gt; });&lt;BR /&gt; view.ui.add(basemapGallery, {&lt;BR /&gt; position: "top-right"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;//initializing the Scale Bar widget&lt;BR /&gt; var scaleBar = new ScaleBar({&lt;BR /&gt; view: view,&lt;BR /&gt; unit: "non-metric"&lt;BR /&gt; });&lt;BR /&gt; view.ui.add(scaleBar, {&lt;BR /&gt; position: "top-right"&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655001#M61082</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-22T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the space between widgits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655002#M61083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the top-right ui holder, the space between widgets is decided by margin-bottom, so you could add a new CSS rule like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="selector token"&gt;.esri-ui-top-right .esri-component&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="property token"&gt;margin-bottom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 0&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/zubozalega/edit?html,output" title="https://jsbin.com/zubozalega/edit?html,output" rel="nofollow noopener noreferrer" target="_blank"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(default is 10x, 0 results in some overlap)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655002#M61083</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2021-12-12T03:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the space between widgits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655003#M61084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a bunch Thomas, i uhhhh never thought to check the css style haha.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-the-space-between-widgits/m-p/655003#M61084</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-22T16:12:15Z</dc:date>
    </item>
  </channel>
</rss>

