You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

BUI addin made with react scrolls to the top every re-render

Received Response
12
Views
2
Comments
edited Jun 13, 2022 4:13AM in General Technical Discussions 2 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!