cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 table columns width with static columns

SergioG_TX
Active Contributor
0 Kudos

All,

I have a table that has 2 fixed columns and a few others which are not fixed. When I try resizing the fixed columns they resize just fine, however, when I resize the columns which are not fixed, then the width becomes different to what I am dragging my column to. Any non-fixed column that I try resizing becomes the new width which is bigger than the sizing I am giving. In order for me to resize to my expected width (less than the one the framework is defaulting) I have to resize to less than the width of the column itself. this does not look like a good option.

if there a bug in the column resizing when there are fixed columns? any idea of how to come around this issue is appreciated.

thank you in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Also,

The amount that the flexible column width is off after resizing seems to be proportional to the size of the fixed columns.  That is, if the the 2 fixed columns are very small, then when you resize other columns, they are only slightly off from where you tried to size the column.  If the 2 fixed columns are of any substantial size, the resizing is off quite significantly.

Answers (3)

Answers (3)

Former Member
0 Kudos

Ok, the issue seems to be an SAPUI5 bug that has been resolved in a later release (not sure which one).  The reason I believe this is the case is that the problem is easily reproducible in our local version of the SDK on the table control with no code modifications, but it appears to be corrected on the SAPUI5 official version of the SDK online.

Former Member
0 Kudos

This is still an issue.  Seems like an SAPUI5 bug.  See screenshots, I try to set the width of the "RECV PLANT" column where the mouse is indicated in the first picture, and the result is in the second picture.  It does this for any of the non-fixed columns.  Does anyone have any ideas?

Edit: if I remove "fixedColumnCount: 2," from the table declaration, this problem goes away.

SergioG_TX
Active Contributor
0 Kudos

in case more information is needed. I have set the following table properties:

selectionMode: sap.ui.table.SelectionMode.Single,

navigationMode: sap.ui.table.NavigationMode.Scrollbar,

fixedColumnCount: 3,

layoutFixed: false,

width: 'auto'  // I also tried :  width: '800px'

francesco_alborghetti
Active Participant
0 Kudos

Hi Sergio,

We are facing a similar issue, did you find a solution for this problem?

Thanks

Francesco

SergioG_TX
Active Contributor
0 Kudos

Francesco,

I don't have an answer yet. One thing that could be looked at would be the zoom on the page. There was a bug on that earlier... so please make sure the zoom is 100%