Fix timeline height rendering

This commit is contained in:
Ben Goldsworthy 2021-01-23 16:32:48 +00:00
parent 19fdc17cce
commit 7cea365fb2
3 changed files with 23 additions and 19 deletions

View File

@ -127,7 +127,7 @@ function within_dates( $role_start_date, $role_end_date ) {
]);
var rowHeight = 15;
var chartHeight = dataTable.getNumberOfRows() * rowHeight + 50;
var chartHeight = (dataTable.getNumberOfRows() * rowHeight) + 50;
var options = {
tooltip: {isHtml: true},
timeline: {

View File

@ -515,6 +515,10 @@ html {
grid-area: item4;
}
#organisation-body div.org_items {
align-items: self;
}
#split-page > #comments {
grid-area: comments;
width: 100%;
@ -1291,7 +1295,7 @@ a:hover, a:focus {
#timeline {
display: block;
margin: auto;
min-height: 200px;
min-height: 95px;
max-width: 950%;
}

View File

@ -78,8 +78,8 @@
// Draws the table, then resizes the element height and re-draws it
// to avoid needing to scroll vertically.
var rowHeight = 15;
var chartHeight = dataTable.getNumberOfRows() * rowHeight + 50;
var rowHeight = 45;
var chartHeight = (dataTable.getDistinctValues(0).length * rowHeight) + 50;
var options = {
tooltip: {isHtml: true},
timeline: {