BUI addin made with react scrolls to the top every re-render
Summary:
BUI addin made with react scrolls to the top every re-render
Content (required):
I made an browser addin using react js library. Using react's dev server or even the production build (opening in local) the page is fine and is working as usual. When I attach it to the workspace, the parent iframe (of my addin) jumps the addin to the top of the page every time it re-rerenders. React components is made in js so re-rending is part of its features. The addin is positioned "stretch top" with "auto size" selected to avoid any scroll bar.
Now this does not happen if I set it to a fixed height (instead of auto sizing) but it does introduce an extra scroll bar especially if the browser's height becomes smaller.
Tagged:
0