Skip to content

Commit

Permalink
manually calculate view port height for full plots - fixes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
jethror1 committed Jan 6, 2025
1 parent bb2837d commit 242ad93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion athena/data/templates/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ <h2>Coverage per chromosome</h2>
$(document).ready(function() {
var data = $all_region_plots;

// set height for viewport from monitor resolution
var height = window.screen.availHeight * 0.7

var table = $('#fullPlots').DataTable({
data: data,
deferRender: true,
Expand All @@ -427,7 +430,7 @@ <h2>Coverage per chromosome</h2>
search: {
regex: true
},
scrollY: "75vh",
scrollY: height + "px",
scrollCollapse: true,
scroller: true,
scroller: {
Expand Down

0 comments on commit 242ad93

Please sign in to comment.