App extensions SDK - expansion of functionality

Hello, Team

Inside custom modal we need to get information from window.parent:

  • innerWidth, innerHeight of user browser
  • scrollX, scrollY of custom modal iframe

It needs for understanding of user ViewPort dimensions and current scroll position of custom modal content.

When we try to read this properties directly we get an error - Blocked a frame with origin from accessing a cross-origin frame.

Could you add to App extensions SDK functions for getting this kind of data?

Thank in advance,
Nikolay

Hi, @Nikolay_Dromov

The custom modal content scroll position can be retrieved with window.scrollY and window.scrollX. Please let me know if I misunderstood your use case or if you meant to get access to the parent window scroll position.

Regarding parent window size, you are correct - this information is unavailable to the iframe. I created a ticket to add this capability to App Extensions SDK.

Hi, @Andreas_Saltsberg

Thank you it would be enough

This topic was automatically closed after 60 days. New replies are no longer allowed.