Select to view content in your preferred language

Option for portrait orientation for sidecar embeds

301
1
07-03-2024 10:04 AM
Status: Already Offered
Labels (2)
DerekMStrout
Frequent Contributor

For the new Embed option within a sidecar, I'm wondering if others would find it useful to at least have the ability to choose a portrait orientation for the block, which would allow a cleaner use of a dashboard's mobile view. I'm thinking the way images are currently handled.

1 Comment
OwenGeo
Status changed to: Already Offered

@DerekMStrout -- This is already possible with a bit of manual configuration. You can set the height of an embed by using iframe code. This blog has more info in the "Link vs. iframe code" section.

Essentially, you set the iframe width to 100% and then can set the height in pixels. You'll also likely want to force the mobile view the dashboard to show by adding "#view=mobile" to the end of the URL.

See the example below.

<iframe src="https://www.arcgis.com/apps/dashboards/eb93a3afad534c4498e02e78d3d74d98#view=mobile" width="100%" height="800px" />