aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 2dde5727..1a034741 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -386,11 +386,13 @@
'sDom': "iti",
"autoWidth": true,
"bSortClasses": false,
+ {% if trait_list|length > 20 %}
"scrollY": "100vh",
"scroller": true,
"scrollCollapse": true
+ {% endif %}
} );
-
+
trait_table.draw(); //ZS: This makes the table adjust its height properly on initial load
$('.toggle-vis').on( 'click', function (e) {