ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[SF][Growing Table]: [Table cannot scroll down when the screen size is set to 90%]

Open yuyuCream opened this issue 1 year ago • 8 comments

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

  1. https://sap.github.io/ui5-webcomponents-react/v2/?path=/story/data-display-table--growing-table
  2. 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.

yuyuCream avatar Mar 03 '25 08:03 yuyuCream

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.

Lukas742 avatar Mar 03 '25 12:03 Lukas742

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.

yuyuCream avatar Mar 04 '25 02:03 yuyuCream

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.

Lukas742 avatar Mar 12 '25 10:03 Lukas742

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

nnaydenow avatar Mar 18 '25 08:03 nnaydenow

Internal reference DINC0452483

JumpNRun avatar Mar 25 '25 23:03 JumpNRun

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.

jiawang1 avatar Mar 27 '25 04:03 jiawang1

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Apr 09 '25 08:04 github-actions[bot]

: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:

ui5-webcomponents-bot avatar Apr 10 '25 08:04 ui5-webcomponents-bot