SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.47k stars 254 forks source link

[ui5-table] Inlining columns don't always work on resize when min-width properties are not sorted descending #5522

Closed ixiler closed 1 year ago

ixiler commented 1 year ago

Bug Description

Having 2 or more columns with min-width properties, that are not ordered descending from leftmost to rightmost column makes so that the columns aren't always inlined when they should on resize

Expected Behavior

The ordering of the columns and their min-width attribute values to not have effect on the behaviour and the columns to get inlined when the give min-width value is reached.

Steps to Reproduce

  1. Go to the sandox
  2. Expand the browser window so that all the columns are expanded
  3. Start to slowly shrink the window width
  4. You should be able to observe only the Size column being inlined

If you shrink the window size fast the inlining works sometimes

Isolated Example

sandox

Context

Log Output / Stack Trace / Screenshots

ezgif-4-fb0a5cdf7d

Priority

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

Stakeholder Info (if applicable) Organization: {SAP} Unit: {Automation Pilot}

Todor-ads commented 1 year ago

Hello @ixiler, Thank you for sharing this finding. Is it possible to provide us with a real use case where this happens? When loading on different device (different screen resolution) this problem is not reproduced.

Regards, Todor

ixiler commented 1 year ago

Hello @Todor-ads, This might happen if a user is using 2 windows simultaneously on 1 screen and resizes them to fit his use case it is a standard feature in Windows operating system that isn't rarely used as far as I know.

Also it is reproducible in our UI currently, because we inline the rightmost columns first for one of our pages and that is an issue we faced by trying to use the provided inlining mechanics, it isn't fabricated just for the minimal reproduction that we have provided here.

Regards, Teodor

Todor-ads commented 1 year ago

Hello @SAP/ui5-webcomponents-topic-rl , take a look at this issue.

ndeshev commented 1 year ago

Hello @ixiler,

We will take a look at the reported behavior.

For now I'm lowering the priority as it is a visual issue.