Closed acbwro closed 11 months ago
When the header content is not pinned and I scroll the content then at the moment when the header becomes hidden the content does not scroll smoothly but skips/jumps visibly.
No response
Content of the dynamic page scrolls smoothly
latest version
Chrome, Edge, Firefox, Safari
It seems to be caused by setting position: absolute when the header is being hidden. It is causing the header to be taken out of the DOM tree and the content div changes its position. If the position is set to relative then the scrolling is smooth - most likely it's in this line: https://github.com/SAP/ui5-webcomponents-react/blob/main/packages/main/src/components/DynamicPage/index.tsx#L293
position: absolute
relative
:tada: This issue has been resolved in version v1.23.0 :tada:
The release is available on v1.23.0
Your semantic-release bot :package::rocket:
Describe the bug
When the header content is not pinned and I scroll the content then at the moment when the header becomes hidden the content does not scroll smoothly but skips/jumps visibly.
Isolated Example
No response
Reproduction steps
Expected Behaviour
Content of the dynamic page scrolls smoothly
Screenshots or Videos
No response
UI5 Web Components for React Version
latest version
UI5 Web Components Version
latest version
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
It seems to be caused by setting
position: absolute
when the header is being hidden. It is causing the header to be taken out of the DOM tree and the content div changes its position. If the position is set torelative
then the scrolling is smooth - most likely it's in this line: https://github.com/SAP/ui5-webcomponents-react/blob/main/packages/main/src/components/DynamicPage/index.tsx#L293Relevant log output
No response
Declaration