Skip to content

Commit f717263

Browse files
committed
Adjusted percent value
1 parent acd17b2 commit f717263

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/assets/js/signal_sets.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,13 @@ bulkSelectDivs.forEach(div => {
150150

151151
var tableHeight = window.screen.width / 3.4;
152152

153-
function vh(percent) {
154-
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
155-
return (percent * h) / 100;
153+
function calculate_table_height() {
154+
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
155+
var percent = 60;
156+
if (h > 1000) {
157+
percent = 70;
158+
}
159+
return (percent * h) / 100;
156160
}
157161

158162

@@ -161,7 +165,7 @@ var table = new DataTable('#signalSetsTable', {
161165
paging: false,
162166
scrollCollapse: true,
163167
scrollX: true,
164-
scrollY: vh(60),
168+
scrollY: calculate_table_height(),
165169
fixedColumns: {
166170
left: 2
167171
},

0 commit comments

Comments
 (0)