altinn-studio
altinn-studio copied to clipboard
Wrong scroll position when switching type
Description of the bug
The scroll position should be reset to the top when switching type
Steps To Reproduce
https://github.com/Altinn/altinn-studio/assets/24462611/b4966d00-90ad-428a-ae60-a5b5e7b49bd9
Additional Information
No response
This issue has two issues:
- Reset scroll to top when content is too large to fit.
- Make sure there is no scrollbar when the content does not fill the div.
Could we consider including the same scroll behavior fix in the configuration panel for components? When switching component focus, the scroll position doesn't reset to the top automatically.
tested ok in dev