<?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: How can I make the legend dimensions smaller? Too much white space in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830140#M8204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WAB on AGOL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 15:21:10 GMT</pubDate>
    <dc:creator>MTorres</dc:creator>
    <dc:date>2017-11-21T15:21:10Z</dc:date>
    <item>
      <title>How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830134#M8198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I would like to trim the dimensions of my legend widget to be smaller. How do I do this? Currently there is too much white space and it covers up important parts of the map when you filter or zoom. I realize you can X out of it but this is inconvenient if you don't have&amp;nbsp;the legend memorized as you're filtering or using another tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melissa&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 21:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830134#M8198</guid>
      <dc:creator>MelissaTraverso</dc:creator>
      <dc:date>2017-10-04T21:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830135#M8199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You can set/add the height and width properties to the widget in the main config.json to decrease the size of the widget panel (by default the widget will be 400 x 410 px).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830135#M8199</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-05T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830136#M8200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide a bit more details for newbies please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 21:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830136#M8200</guid>
      <dc:creator>MTorres</dc:creator>
      <dc:date>2017-11-14T21:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830137#M8201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the apps main config.json file (i.e. [install dir]\server\apps\[app#]\config.json) you will find the widgets section and then the legend widget. Assuming that you do not have the legend in the HeaderController widget then you will find a position property, just add a height and width to that. If you are talking about the legend being part of the headercontroller widget then you are out of luck there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 21:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830137#M8201</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-14T21:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830138#M8202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you show me a real life example of that path please? TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 13:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830138#M8202</guid>
      <dc:creator>MTorres</dc:creator>
      <dc:date>2017-11-21T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830139#M8203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Are you working with WAB on AGOL or WAB Dev?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 14:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830139#M8203</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-21T14:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830140#M8204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WAB on AGOL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830140#M8204</guid>
      <dc:creator>MTorres</dc:creator>
      <dc:date>2017-11-21T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830141#M8205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then edits like this are not possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 01:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830141#M8205</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-22T01:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830142#M8206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've downloaded the source code of the web app (created from web app builder), and I'm trying to edit the config.json to make the legend smaller (in height), as suggested by &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;. There are two spots related to the Legend widget where the position property exists, and I've added "height": 125 in both spots. However no changes take place when I reload the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried inspecting the element in the google chrome developer tools. I find that the legend seems to be contained within this element:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="jimu-panel jimu-pocket-panel" id="_19_panel" widgetid="_19_panel" style="left: auto; top: 10px; right: 15px; bottom: 10px; width: 360px; height: 125px; padding: 0px; z-index: 101; position: absolute;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually the height property is set to auto, but when I specify 125px for that style property, it changes the legend to the height I want! But I can't figure out how to export this change to my files that I launch the app from. How would I permanently edit my html or css file to reflect this change? I tried adding&lt;/P&gt;&lt;P&gt;.jimu-panel .jimu-pocket-panel{&lt;BR /&gt; height: 125px;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;towards the top of the index.html page (where the other css styles are), but this did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saffia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 18:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830142#M8206</guid>
      <dc:creator>SaffiaHossainzadeh2</dc:creator>
      <dc:date>2019-03-13T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830143#M8207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saffia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;You can set/add the height and width properties to the widget in the apps main &lt;STRONG&gt;config.json&lt;/STRONG&gt; to decrease the size of the widget panel (by default the widget will be 400 x 410 px).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 15:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830143#M8207</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-14T15:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830144#M8208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm...that doesn't work for me. I added line 205 to the config.json:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="571" src="https://community.esri.com/legacyfs/online/439470_Config1example.PNG" width="517" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I similarly added "height":125 to a position property in a widgetPool section&amp;nbsp;of config.json. And nothing happened. I tried adding a new position property at other spots inside the legend widget (like after line 177), but none of my attempts were successful.&amp;nbsp;Am I missing something?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for completeness, I was able to adjust the legend size as I intended using an entirely different method. I added the following css tag in the index.html file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.jimu-pocket-panel {&lt;BR /&gt;&amp;nbsp; height: 95px !important;&lt;BR /&gt;&amp;nbsp; width: 220px !important;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would not work without the !important part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 15:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830144#M8208</guid>
      <dc:creator>SaffiaHossainzadeh2</dc:creator>
      <dc:date>2019-03-14T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830145#M8209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saffia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are heading in the wrong direction. Here is what I am talking about. (line 6 was added).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"position"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          &lt;SPAN class="string token"&gt;"left"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;205&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          &lt;SPAN class="string token"&gt;"top"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;45&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          &lt;SPAN class="string token"&gt;"relativeTo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"map"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          &lt;SPAN class="string token"&gt;"height"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;125&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"placeholderIndex"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"_8"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"version"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"2.11"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"closeable"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"uri"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"widgets/Legend/Widget"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Legend"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"label"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Legend_2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"config"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"configs/Legend/config__8.json"&lt;/SPAN&gt;        
      &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:01:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830145#M8209</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the legend dimensions smaller? Too much white space</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830146#M8210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't work for me straight away. I will try some more though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your input!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 16:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-can-i-make-the-legend-dimensions-smaller-too/m-p/830146#M8210</guid>
      <dc:creator>SaffiaHossainzadeh2</dc:creator>
      <dc:date>2019-03-14T16:10:06Z</dc:date>
    </item>
  </channel>
</rss>

