Skip to main content
Question

Widget hijacks scrolling page

  • May 22, 2025
  • 4 replies
  • 17 views

Forum|alt.badge.img

I have embeded box.com widget on the page in the Angular site.
Something like:

 

 

When the widget loads, it makes the page scroll to it.
How to avoid it?

4 replies

Forum|alt.badge.img

I can't believe nobody has this problem??


Forum|alt.badge.img

Unfortunately, auto focus is defaulted to true in the underlying box-content-preview SDK and the Box embed widget doesn't seem to allow a way to specify preview options.

 

Would using the underlying box-content-preview library to preview files be a possible workaround in the meantime?


Forum|alt.badge.img

Thanks for answering!

Can I get more info on the library you mentioned and how to embed it into my site? Thanks


Forum|alt.badge.img

You can check out the open source project here: https://github.com/box/box-content-preview. It includes samples to get you up and running