Describe the bug
Sometimes the last column of a datagrid list isn't sizing quite right to fit within the container, needing a horizontal scroll. Additionally, when using the horizontal scroll, grid header and data columns don't align correctly.
To Reproduce
Steps to reproduce the behavior:
List of Issues
On Hold
Expected behavior
Columns in grid should size to their content more efficiently. Columns should stay aligned with header on scroll. When collapsing the app menu, datagrid doesn't resize appropriately.
Screenshots
gif recording: http://recordit.co/vXZbc2V0Nd
Other examples- -
Benefits list after collapsing app menu:

Benefits enrollment groups - List/Detail example:

Platform
Another related Landmark ticket: http://jira.lawson.com/browse/LMCLIENT-22369
As per our call will have to make some examples and isolate whats going on here before we estimate. I'll give it a 3 to do that and see if we need to adjust to fix.
Another related Landmark ticket: http://jira.lawson.com/browse/LMCLIENT-19853
Another related Landmark ticket: http://jira.lawson.com/browse/LMCLIENT-22228
Another related Landmark ticket: http://jira.lawson.com/browse/LMCLIENT-22495
Related Landmark ticket: http://jira.lawson.com/browse/LMCLIENT-22597
Yet another LMCLIENT ticket: https://jira.lawson.com/browse/LMCLIENT-22656
@claudenbach and @jamie-norman - i dont seem to be able to get to any of the pages on the sample links you mentioned. For all of the tickets can you please list:
For now will look at the menu issue.
I fixed the issue as reported and it should fix http://jira.lawson.com/browse/LMCLIENT-22369
The algorithm for resizing the page did not resize the last column very well. Added a way to test this and a fix for it. Note that some of the issue links are unconfirmed so fixing what i see on 2 assuming its all the same issue.
http://localhost:4000/components/datagrid/test-columns-auto.html?headerHamburger=true&appMenuOpen=true
Steps necessary to review your pull request (required):
http://localhost:4000/components/datagrid/test-fixed-height-scrolling?headerHamburger=true&appMenuOpen=true
http://localhost:4000/components/datagrid/test-columns-stretch-column.html?headerHamburger=true&appMenuOpen=true
Other notes:
With the other linked issues, please make a new issue if they are not the same issue.
Passed QA testing on all browsers.
These look pretty good. The only issue I see is when you resize the browser window and don't reload the screen. I realize that's a less likely use case, but there's still some minor rendering issues in those situations.
Yeah i think the only case there is if the screen starts out smaller than the columns fit. Then you resize bigger. In that case its not doing the stretch on the last column. I think we could look a bit more into that case.