I'm trying to find out if it's possible to shift the map view over when an action bar is expanded. For example, when this action bar is expanded, it covers up my search widget, scale bar, etc.
Solved! Go to Solution.
Here is a codepen that uses padding with an action bar: https://codepen.io/benesri/pen/XWVBMQm?editors=1010
Hi @Mandalorian,
MapView has a padding property which will do that. Here is a sample from the JavaScript API:
https://developers.arcgis.com/javascript/latest/sample-code/view-padding/
Here is a codepen that uses padding with an action bar: https://codepen.io/benesri/pen/XWVBMQm?editors=1010