<?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: calcite panel with Search widget, height does not update in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1232921#M79372</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/637211"&gt;@LeidavanHees&lt;/a&gt;,&amp;nbsp;thanks for posting you question here.&lt;/P&gt;&lt;P&gt;This should be possible if you update the position of the Search container. Try setting the position to "absolute" or "relative".&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 20:33:46 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2022-11-17T20:33:46Z</dc:date>
    <item>
      <title>calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1232636#M79358</link>
      <description>&lt;P&gt;Good morning/afternoon/evening,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m working on (my first) map app, but am a bit stuck on a few things. I hope one of you would be so kind as to help me out.&lt;/P&gt;&lt;P&gt;I made a calcite panel containing a Search widget that is opened from an action bar in the same way as they do in the tutorial (&lt;A href="https://developers.arcgis.com/calcite-design-system/tutorials/create-a-mapping-app/" target="_blank"&gt;https://developers.arcgis.com/calcite-design-system/tutorials/create-a-mapping-app/&lt;/A&gt;) for bookmarks, print, layerlist, etc.&lt;/P&gt;&lt;P&gt;It looks a bit strange though. The search widget is less wide than the panel. But more importantly, there is no space for suggestions below it (see screenshot “Search short panel 1”). So when you type a street name, you do not see any suggestions unless you scroll (see screenshot “Search short panel 2”).&lt;/P&gt;&lt;P&gt;Is there a way to make it update the height automatically or to just make it bigger? Or should I just not try to put this widget in a panel?&lt;/P&gt;&lt;P&gt;I’ve tried setting a min-height for the search-container, but that makes it behave weirder (see screeny “min-height set”).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like this.&lt;/P&gt;&lt;P&gt;Action bar:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;calcite-action data-action-id="search" icon="search" text="Zoeken" &amp;gt;&amp;lt;/calcite-action&amp;gt;&lt;/P&gt;&lt;P&gt;Panel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;calcite-panel heading="Zoeken" height-scale="l" data-panel-id="search" hidden&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="search-container"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/calcite-panel&amp;gt;&lt;/P&gt;&lt;P&gt;Widget:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const search= new Search({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container: "search-container"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leida.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 11:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1232636#M79358</guid>
      <dc:creator>LeidavanHees</dc:creator>
      <dc:date>2022-11-17T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1232921#M79372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/637211"&gt;@LeidavanHees&lt;/a&gt;,&amp;nbsp;thanks for posting you question here.&lt;/P&gt;&lt;P&gt;This should be possible if you update the position of the Search container. Try setting the position to "absolute" or "relative".&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 20:33:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1232921#M79372</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2022-11-17T20:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1235422#M79457</link>
      <description>&lt;P&gt;Hi Noah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your response. I've been playing around with it a bit, but have not been able to make it work for me. Setting the position to "relative" didn't change anything, setting it to "absolute" made the panel with the search-widget disappear (only the header remained).&lt;/P&gt;&lt;P&gt;I thought I could maybe fix that by putting another container around the Search container. This only kind of works if I set the height to a certain size like 300px:&lt;/P&gt;&lt;P&gt;#search-container {&lt;BR /&gt;position:absolute;&lt;BR /&gt;inline-size: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#search-container2 {&lt;BR /&gt;min-height:300px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;But the result is not very pretty and the panel doesn't expand if the suggestions are longer than that... I tried making the height update based on it's contents, but no luck so far. Do you have any idea how I could do that?&lt;/P&gt;&lt;P&gt;I also tried setting the Search container position to 'fixed'. That simply shows the search-widget below the panel-header. Which would look alright if it's width would be the same size as the panel-header, which it is not. Is there maybe a way to update the width instead?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Leida&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1235422#M79457</guid>
      <dc:creator>LeidavanHees</dc:creator>
      <dc:date>2022-11-28T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323389#M82098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know this is an old post, landed here looking for a solution to the same issue.&amp;nbsp; I made some minor CSS adjustments &lt;A title="CSS adjustments to Search Widget in a panel" href="https://codepen.io/msamwill/pen/wvRGvzg" target="_self"&gt;https://codepen.io/msamwill/pen/wvRGvzg&lt;/A&gt;&amp;nbsp;and the width looks better.&amp;nbsp; I still have not solved the issue of the panel height dynamically adjusting based on the height of the search widget.&amp;nbsp; Did you ever solve it?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 11:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323389#M82098</guid>
      <dc:creator>AnnaWilliams</dc:creator>
      <dc:date>2023-08-29T11:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323451#M82099</link>
      <description>&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't find a perfect solution, but did eventually end up with something I'm okay with:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeidavanHees_0-1693316737210.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79379i0836418352309FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeidavanHees_0-1693316737210.png" alt="LeidavanHees_0-1693316737210.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't have much time to dive into it today. But I think this is the relevant code:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;#search-container {
	position: fixed;
}

.esri-search {
    	inline-size: var(--calcite-shell-panel-width)!important;
	max-inline-size: var(--calcite-shell-panel-max-width)!important;
	min-inline-size: var(--calcite-shell-panel-min-width)!important;
	transition: max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)!important;
 	border-radius: 0px 0px 5px 5px !important;
	--calcite-ui-brand: none !important;
}


.esri-search__suggestions-menu {
	border-radius: 0px 0px 3px 3px !important;
}

.esri-search--show-suggestions .esri-search__suggestions-menu, .esri-search--sources .esri-search__sources-menu {
	border-top: solid 1px rgba(200,200,200) !important;
	margin: 0 0 0 0 !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably not all of it is relevant for you, like the colors and --calcite-ui-brand stuff. But I didn't have the time to sort it out today.&lt;/P&gt;&lt;P&gt;And not everything may even be needed to get it to work (I stopped fiddeling with it as soon as it worked).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do let me know if it doesn't work. Maybe I didn't copy all the relevant bits. Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323451#M82099</guid>
      <dc:creator>LeidavanHees</dc:creator>
      <dc:date>2023-08-29T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323524#M82100</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; That is working for me too.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 16:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323524#M82100</guid>
      <dc:creator>AnnaWilliams</dc:creator>
      <dc:date>2023-08-29T16:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323788#M82105</link>
      <description>&lt;P&gt;Great! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 07:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323788#M82105</guid>
      <dc:creator>LeidavanHees</dc:creator>
      <dc:date>2023-08-30T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: calcite panel with Search widget, height does not update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323880#M82109</link>
      <description>&lt;P&gt;Did you add any JavaScript to handle view resizing?&amp;nbsp; If I change my panel size in JavaScript&amp;nbsp;shellPanel.widthScale = "l" the width of the search widget does not adjust.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 13:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-panel-with-search-widget-height-does-not/m-p/1323880#M82109</guid>
      <dc:creator>AnnaWilliams</dc:creator>
      <dc:date>2023-08-30T13:18:38Z</dc:date>
    </item>
  </channel>
</rss>

