Good morning/afternoon/evening,
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.
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 (https://developers.arcgis.com/calcite-design-system/tutorials/create-a-mapping-app/) for bookmarks, print, layerlist, etc.
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”).
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?
I’ve tried setting a min-height for the search-container, but that makes it behave weirder (see screeny “min-height set”).
It looks like this.
Action bar:
<calcite-action data-action-id="search" icon="search" text="Zoeken" ></calcite-action>
Panel:
<calcite-panel heading="Zoeken" height-scale="l" data-panel-id="search" hidden>
<div id="search-container"></div>
</calcite-panel>
Widget:
const search= new Search({
view,
container: "search-container"
});
Any help would be much appreciated!
Leida.