The implementation of jqgrid on my webpage has a fixed height requirement, where users should be able to scroll down if there are more rows. While this works well for tables with many rows, I am facing an issue with tables that have fewer rows. In these cases, there is an unnecessary scroll bar space (number 2 in the image) and an extra line at the left (number 1 in the image). This issue persists across all tables. Below is an example of one of my tables:
Here are the options I used:
...
height: '150'
jsonReader: {
repeatitems: false
},
loadui: 'disable',
altRows: true,
viewrecords: true,
loadonce: true,
...
I did not make any modifications specific to the table height. Any ideas on how to resolve this?