Skip to content

[ui5-table]: Avoid popin of table columns if there is enough space left. #12812

@mofterdinger

Description

@mofterdinger

Bug Description

Hi,

we are using the SAP UI5 WebComponents 2.17.0 in an SAP internal application. We are facing an issue with the Popin feature of the table control in Safari.
Sometimes (not always) the table control performs an popin of all columns, even if there is enough space in the window. Here is a screenshot:

Image

As you can see on the screenshot, there is still enough space to show some columns. This issue happens only with Safari and after Zooming.

Here the declaration of the table in our code:

            ui5-table { "overflow-mode": "Popin",
                ui5-table-header-row { slot: "headerRow",
                    ui5-table-header-cell { width: "11rem", "Result" }
                    ui5-table-header-cell { width: "6rem", importance: "-1", "Duration" }
                    ui5-table-header-cell { width: "auto", "min-width": "20rem", "Commit" }
                    ui5-table-header-cell { width: "13rem", "Author" }
                    if *show_details.read() {
                        ui5-table-header-cell { width: "9rem", importance: "-1", "Start" }
                        ui5-table-header-cell { width: "9rem", importance: "-1", "End" }
                        ui5-table-header-cell { width: "4rem", importance: "-1", "Retries" }
                        ui5-table-header-cell { width: "4rem", importance: "-1", "Error" }
                    }
                }
...

Can you give as a hint how we can avoid this column popin if there is still enough space to show the columns.

Thanks,
Markus

Affected Component

ui5-table

Expected Behaviour

If there is enough space to show columns, do not popin them.

Isolated Example

No response

Steps to Reproduce

...

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

2.17.0

Browser

Safari

Operating System

MacOS

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions