Skip to content

[smart-table] Columns of sap.ui.table.Table smart table do not get automatically resize #1749

@strawherotk

Description

@strawherotk

OpenUI5 version: 1.44

Browser/version (+device/version): Chrome 62

Steps to reproduce the problem:

  1. Create a Smart table with table type is sap.ui.table.Table
  2. Integrate data from Backend
  3. The columns width of the table is set to "30em" by default; which is too large for many columns.

What is the expected result?
The columns should be automatically resized based on the content of that column, which is done in sap.m.table.

What happens instead?
The columns' width set is too big.

Solution:
For now, I have a temporary solution is:

  • loop through all columns.
  • use "autoResizeColumn", or set width of column to "100%".

If seem to work for now. But I think the smart table property should have a property call "autoResizing" so that we don't have to add this code every time we use a smart table.

What do you think about that?
Looking for your comment.

Thank you,
Victor.

p/s: sorry I couldn't upload an example image because of restriction of my company network.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions