Embed widget and use code to show the dynamic date not working on iPhones

326
2
06-01-2022 08:03 AM
RoseZhou2
Occasional Contributor

Hello:

We have an Experience Builder 1.7 app. There is an embed widget which shows the past two weeks date dynamically using code, e.g. "Data from 2022-05-18 to 2022-06-01"

This works very well on desktop. But on iPhone x, the two week date period is not shown. It only shows the text "Data from".

Any ideas?

Rose

0 Kudos
2 Replies
TonghuiMing
Esri Regular Contributor

@RoseZhou2 Based on your description, it is because the size of the <iframe> is not specified for the mobile layout, causing the remaining part to be cut off. In order to adapt to the responsive screen size, you will need to control the size on your own by defining the width and height inside your code, with a custom layout if needed.

0 Kudos
RoseZhou2
Occasional Contributor

@TonghuiMing  Thanks for your response. I forgot to update this post. Actually, it's not cut off, when click on the <iframe>, the vertical scrollbar will show up. On Android cell phones, the vertical scrollbar automatically displays.  

Regards

Rose

0 Kudos