Fix graph title space

This commit is contained in:
Ian Gulliver
2019-07-10 22:23:06 +00:00
parent 103aacfc42
commit d22fb20da5
2 changed files with 3 additions and 4 deletions

View File

@@ -146,8 +146,8 @@ class Layout {
}
fixOrigin() {
let min = [Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER];
let max = [Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER];
let min = [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY];
let max = [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY];
for (let group of this.groups_) {
let [groupMin, groupMax] = group.getMinMax();
for (let i of [0, 1]) {
@@ -165,7 +165,7 @@ class Layout {
}
if (this.graph_.label) {
min[0] -= 1;
min[1] -= 1;
}
// Set a minimum size and center the smaller graph