OpenUI5 version: 1.44
Browser/version (+device/version): Chrome 62
Steps to reproduce the problem:
- Create a Smart table with table type is sap.ui.table.Table
- Integrate data from Backend
- 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.
OpenUI5 version: 1.44
Browser/version (+device/version): Chrome 62
Steps to reproduce the problem:
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:
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.