Skip to content

Commit f752027

Browse files
authored
Merge pull request #206 from sokumon/serial-no-width
fix: make serialno column resizeable data length is a lot
2 parents 223f6a6 + 5d734d5 commit f752027

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/body-renderer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ export default class BodyRenderer {
144144
const style = window.getComputedStyle(this.instance.header);
145145
const matrix = new DOMMatrixReadOnly(style.transform);
146146
const width = (-matrix.m41) + this.instance.header.clientWidth;
147-
console.log(width);
148147
const height = this.bodyScrollable.clientHeight;
149-
console.log(width);
150148
return `
151149
<div
152150
class="dt-scrollable__no-data"

src/datamanager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ export default class DataManager {
7777
focusable: false,
7878
dropdown: false
7979
};
80-
80+
if (this.options.data.length > 1000) {
81+
cell.resizable = true;
82+
}
8183
this.columns.push(cell);
8284
}
8385
}

0 commit comments

Comments
 (0)