Skip to main content
Participant
Apr 15, 2019 7:07 AM UTC
Answered

Is this A bug when embedding XD prototype to Adobe Portfolio?

I just noticed that when I open a page on Adobe Portfolio with embedded XD prototype, the scrollbar will automatically scroll to the location of the prototype.

Is this a bug? Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.
nick.perdomoCorrect answer
Participant
Dec 9, 2019 7:10 PM UTC

UPDATE - March 10, 2020
This solution will only work outside of Adobe Porfolio due to embed code stripping enforced by Adobe.

Original Post:

An easy solution for this is to sandbox the XD iframe. Add the following line to your iframe embed code:

 

 

sandbox="allow-same-origin allow-forms allow-scripts"

 

 


The full embed code should look something like this:

 

 

<iframe width="375" height="667" src="https://xd.adobe.com/embed/.../" frameborder="0" allowfullscreen sandbox="allow-same-origin allow-forms allow-scripts"></iframe>

 

19 replies

Participant
Mar 18, 2020 5:04 AM UTC

Is there any other advice as to how to get around this in Adobe Portfolio? 
Really want to be able to embed prototypes in my portfolio without focus snapping to the iFrame at the bottom. 

Thanks. 

Translate
Participant
Mar 10, 2020 6:01 AM UTC

Addig Sandbox line not working for me - Adobe removes in on saving. 

 

Is there any other fix for this? 

 

iFrame is stealing focus for me on my portfolio. 

Translate
bradleeeey
Participant
Feb 5, 2020 11:53 PM UTC

Doesn't work on adobe portfolio

Translate
JamesCDP
Participant
Jan 16, 2020 5:33 PM UTC

This didn't work for me... Has it worked for anyone else?

Translate
Participant
Jan 20, 2020 7:14 PM UTC

It didn't work for me either allow-scripts causes the page to jump, but nothing loads without it

Translate
nick.perdomoCorrect answer
Participant
Dec 9, 2019 7:10 PM UTC

UPDATE - March 10, 2020
This solution will only work outside of Adobe Porfolio due to embed code stripping enforced by Adobe.

Original Post:

An easy solution for this is to sandbox the XD iframe. Add the following line to your iframe embed code:

 

 

sandbox="allow-same-origin allow-forms allow-scripts"

 

 


The full embed code should look something like this:

 

 

<iframe width="375" height="667" src="https://xd.adobe.com/embed/.../" frameborder="0" allowfullscreen sandbox="allow-same-origin allow-forms allow-scripts"></iframe>

 

Translate
Participant
Dec 23, 2019 7:17 PM UTC

I'm experiencing the same thing when I embed my XD protoype on wordpress (using elementor pro). The browser jumps to the iframe instead of staying at the header. It works fine on safari but does that on my android browser and on chrome. I just tried this fix but it didn't work.. Am I doing something wrong with it? Thanks!

Translate
Participant
Dec 4, 2019 7:47 AM UTC

Just commenting to bring up the importance of the issue. I had the same problem on my site. It happens in Firefox, Chrome, and Edge.

 

There is a post on Stack Overflow about it: https://stackoverflow.com/questions/36775412/prevent-page-to-jumping-to-iframe/36775563#36775563 for a temporary fix. I can't use that because I don't have full access to backend code on my site.

Translate
chandlersimon
Participant
Nov 20, 2019 4:43 PM UTC

I have the same issue here, just commenteting to up the priority on this! Thanks for looking into it as it has a pretty significant impact on my websites functionality. Thanks,

Chandler

Translate
Participant
Jul 26, 2019 4:06 PM UTC

Having the same issue with an embedded XD prototype on a Webflow page. I can see that it's loading after everything else, but why it's automatically scrolling down to the container section is beyond me.

Translate
Participant
Apr 25, 2019 5:14 PM UTC

I'm experiencing the same problem here.

I had to remove the XD prototype from my website because it scoll down the page on loading

Translate
Nancy OShea
Community Expert
Community Expert
Apr 16, 2019 6:46 PM UTC

Not too sure what you mean.   Can you post the URL to an example?

Translate
Nancy O'Shea— Product User & Community Expert
soupnoodle
Participant
Apr 16, 2019 7:04 PM UTC

Sure here is an example

https://hfdesign.myportfolio.com/h2flow​

Translate
Nancy OShea
Community Expert
Community Expert
Apr 16, 2019 8:45 PM UTC

That XD embed is certainly grabbing page focus isn't it?

I haven't seen that before.

Contact Portfolio Team directly and ask them what's up.

Translate
Nancy O'Shea— Product User & Community Expert