-
So I've upgrade today to 2.2.4, and this seems to have messed up the spacing on my powergrid tables. I cannot show images of the tables due to sensitive data. On table A, one I made a few weeks ago, 9 columns including checkbox & actions, after the update, there is now a scroll bar at the bottom of the table and it is very wide. I do not have an issue with this as it allows for all the data to be shown with space to spare. On table B, one I made a few hours ago, 12 columns including checkbox & actions, this table is determined to fit into a set space. The first column after the checkbox (2nd column) is for the item title, which can be up to a dozen words long, is overflowing into the columns to the right. I've done some experimenting in the web-browser inspect, when I removed the "white-space: nowrap;" the data in the cell wrapped like I wanted it too, is there a way to remove the "white-space: nowrap" on a column by column basis? I know that the bodyAttribute() adds to the class/attribute, is there a way to make it remove from it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out. In the bodyAttribute(), just have bodyAttribute('text-left', 'white-space: normal;') so that this white-space will overwrite the existing one. |
Beta Was this translation helpful? Give feedback.
I figured it out. In the bodyAttribute(), just have bodyAttribute('text-left', 'white-space: normal;') so that this white-space will overwrite the existing one.