Skip to content

Commit a828973

Browse files
committed
Table height is automatically adjusted
1 parent 50beb6a commit a828973

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/assets/js/signal_sets.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,16 @@ bulkSelectDivs.forEach(div => {
148148
});
149149
});
150150

151+
var tableHeight = window.screen.width / 2.36;
152+
console.log(tableHeight);
153+
151154

152155
var table = new DataTable('#signalSetsTable', {
153156
fixedHeader: true,
154157
paging: false,
155158
scrollCollapse: true,
156159
scrollX: true,
157-
scrollY: 550,
160+
scrollY: tableHeight,
158161
fixedColumns: {
159162
left: 2
160163
},

0 commit comments

Comments
 (0)