Fix for grid issues (with 4k resolution)

This commit is contained in:
piotrpekala7 2021-04-06 17:44:10 +02:00
parent 785855d3bd
commit da5eb7a4b6

View File

@ -108,7 +108,13 @@ export class D3MapComponent implements OnInit, OnChanges, OnDestroy {
if (val) {
this.svg.attr('height', window.innerHeight + window.scrollY - 16);
} else {
let heightOfProjectWindow = window.innerHeight - 16;
if (this.height > heightOfProjectWindow) {
this.svg.attr('height', this.height);
} else {
this.svg.attr('height', heightOfProjectWindow);
}
}
}