-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datagrid: "last" option does not stretch last column width #4913
Comments
Can you also post that code change you think might fix? Note that a workaround for this we found investigating is to set |
A possible solution for this would be adding something like this inside the 'if' that checks for lastColumn on line 4784 of datagrid.js. It might be an adjusted value from this based on padding and edges : |
Another idea could be if last is set then set it to the last columns ID (which works). |
One issue we have noticed with using stretchColumn on the last column, is when resizing the last column past the edge of the datagrid the column is lost and the scrollbar only scrolls to the end of the second-to-last column. |
…olumn setting for the last column
QA Passed. Thank you |
Describe the bug
When setting the datagrid option stretchColumn to "last", the last column width remains the original calculated value, and does not stretch to the end of the grid.
To Reproduce
Steps to reproduce the behavior:
example-drilldown.zip
Expected behavior
When stretchColumn is set to "last" it is expected that all columns except the last column are not stretched and the last column is stretched to the end of the grid.
Version
Screenshots
![image](https://user-images.githubusercontent.com/76002134/109994627-1b20a500-7cd3-11eb-9a69-8e5a0b33a22f.png)
What the datagrid looks like:
What the datagrid would look like with a stretched last column:
![image](https://user-images.githubusercontent.com/76002134/109994772-40151800-7cd3-11eb-9e70-a3af7b8195c7.png)
Platform
The text was updated successfully, but these errors were encountered: