nghiemdoan-msft / PCF-ResponsiveIFrameControl

Controls using PowerApps Components Framework
MIT License
14 stars 7 forks source link

Problem with two iframes on one screen if loading Excel-Content from SharePoint #1

Open Lord-Vendreth opened 2 years ago

Lord-Vendreth commented 2 years ago

Probably there is an error in the size (width or height) of the iFrame (not in the size that can be specified by parameter) as soon as you change the positions (X or Y) by parameter.

Short explanation: On one page 2 iFrames are used, which change position in the interval of e.g. 30 seconds. The width of the visible area is 1366 pixels. The iFrame, which is outside the visible area, should load the same page after 15 seconds by adjusting the SRC parameter to read new values. The page load should not be visible. Once the page has been loaded and the 30 seconds have elapsed, the two iFrames swap positions. After the iFrames have exchanged their positions with each other, everything still looks good. However, if the SRC parameter of the invisible iFrame is now adjusted, the display of the visible area changes, with the content having completely incorrect positioning.

Szenario

Init values:

image

Changes after 15 seconds:

Changes after 30 seconds:

image

Changes after 45 seconds:

image

I hope that the error description helps to some extent :)