DashEditView: fix for small ui bug, when having dashboard settings view open and entering panel edit mode, did not cause dash edit view to be closed

This commit is contained in:
Torkel Ödegaard 2015-05-05 12:38:18 +02:00
parent 34539c0c13
commit 71edd9ff1b
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ function (angular, _, $) {
};
DashboardViewState.prototype.enterFullscreen = function(panelScope) {
this.$scope.appEvent('hide-dash-editor');
var docHeight = $(window).height();
var editHeight = Math.floor(docHeight * 0.3);
var fullscreenHeight = Math.floor(docHeight * 0.7);