[SF][Growing Table]: [Table cannot scroll down when the screen size is set to 90%]
Describe the bug
When the screen size is set to 90%, the table cannot scroll down. https://sap.github.io/ui5-webcomponents-react/v2/?path=/story/data-display-table--growing-table
Isolated Example
No response
Reproduction steps
- https://sap.github.io/ui5-webcomponents-react/v2/?path=/story/data-display-table--growing-table
- When the screen size is set to 90% or 80%, the table cannot scroll down.
This issue only occurs in version 2.0 and works fine in version 1.0.
Expected Behaviour
The table can scroll down regardless of the screen size.
Screenshots or Videos
No response
UI5 Web Components for React Version
2.2.0
UI5 Web Components Version
2.3.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
- [x] I’m not disclosing any internal or sensitive information.
Hi @yuyuCream
I was only able to reproduce this issue when the component is used inside an iframe in our Storybook. Therefore, I'll mark this as a documentation issue and we'll investigate the behavior more.
If this affects your implementation, please let us know, then we'll treat it with higher priority than a documentation issue.
Hi @Lukas742
It's more than just a documentation issue. When I set the screen size to 90% and scroll down to the bottom of the table, the loadMore function is not being triggered. Please help investigate the behavior more.
Hi @yuyuCream
for some reason I'm now able to reproduce this not only in our example, but in the ui5-webcomponents example as well. I don't know why it worked previously for me there, but since it's now confirmed that it's not a problem with our wrapper, I'm going to forward the issue to the ui5-webcomponents repo as the component is developed there.
Hi Colleagues,
you can reproduce the described behavior in your "TableGrowing" example as well.
Hello @SAP/ui5-webcomponents-table,
I'm not sure that this is a supported case but could you please take a look? The issue reported issue is about growing functionality when there is a zoom out.
Regards, Nayden
Internal reference DINC0452483
I also encountered a similar issue where table scrolling does not trigger properly. This is not only caused by zooming in and out but can also occur on certain displays when using a sticky header configuration. A potential reason for this issue is that Table Growing (version 2.8) uses an IntersectionObserver to monitor the last invisible table row (with the ID table-end-row). When this row scrolls into the visible area of the scroll view, it triggers the load more event. However, due to differences between browsers or zoom levels, subpixel rendering may introduce rounding errors, sometimes leading to a 1px discrepancy. As a result, when scrolling to the bottom of the table, there might be a 1px offset, preventing the invisible table row from entering the visible area, which in turn fails to trigger the load more event. I tried setting margin-top: -2px; on the last invisible table row, to make sure the row can scroll into visible area, and it solved the issue. However, this is just a hack solution.
This issue has been closed. To reopen, just leave a comment!
:tada: This issue has been resolved in version v2.9.1-rc.0 :tada:
The release is available on v2.9.1-rc.0
Your semantic-release bot :package::rocket: