Merge pull request #194 from RitvikSardana/develop-ritvik-rowWidth-fix

fix: row width fix to remove unnecessary scroll bar
This commit is contained in:
Shariq Ansari 2024-01-08 15:14:16 +05:30 committed by GitHub
commit dbde62ce40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,7 @@ export default class Style {
if (!firstRow) return; if (!firstRow) return;
const rowWidth = $.style(firstRow, 'width'); const rowWidth = $.style(firstRow, 'width');
let width = bodyWidth > rowWidth ? rowWidth : bodyWidth; let width = bodyWidth > rowWidth ? rowWidth + 10 : bodyWidth;
$.style(this.bodyScrollable, { $.style(this.bodyScrollable, {
width: width + 'px' width: width + 'px'
}); });