wip: fixed issues now things are starting to work as before for angular panels

This commit is contained in:
Torkel Ödegaard
2018-10-09 17:07:13 +02:00
parent 2f84101fe7
commit d2bdf8cff1
7 changed files with 19 additions and 14 deletions

View File

@@ -220,8 +220,8 @@ export class PanelCtrl {
calculatePanelHeight() {
if (this.panel.fullscreen) {
const docHeight = $(window).height();
const editHeight = Math.floor(docHeight * 0.4);
const docHeight = $('.react-grid-layout').height();
const editHeight = Math.floor(docHeight * 0.35);
const fullscreenHeight = Math.floor(docHeight * 0.8);
this.containerHeight = this.panel.isEditing ? editHeight : fullscreenHeight;
} else {