mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-18 10:46:35 +00:00
Fix for grid issues (with 4k resolution)
This commit is contained in:
parent
785855d3bd
commit
da5eb7a4b6
@ -108,7 +108,13 @@ export class D3MapComponent implements OnInit, OnChanges, OnDestroy {
|
||||
if (val) {
|
||||
this.svg.attr('height', window.innerHeight + window.scrollY - 16);
|
||||
} else {
|
||||
this.svg.attr('height', this.height);
|
||||
let heightOfProjectWindow = window.innerHeight - 16;
|
||||
|
||||
if (this.height > heightOfProjectWindow) {
|
||||
this.svg.attr('height', this.height);
|
||||
} else {
|
||||
this.svg.attr('height', heightOfProjectWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user