File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -150,9 +150,13 @@ bulkSelectDivs.forEach(div => {
150150
151151var 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 } ,
You can’t perform that action at this time.
0 commit comments