From 71edd9ff1b5554ed21d983d0d984333480458eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 5 May 2015 12:38:18 +0200 Subject: [PATCH] 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 --- public/app/features/dashboard/viewStateSrv.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/dashboard/viewStateSrv.js b/public/app/features/dashboard/viewStateSrv.js index 08f651f8d5b..ef7669e387c 100644 --- a/public/app/features/dashboard/viewStateSrv.js +++ b/public/app/features/dashboard/viewStateSrv.js @@ -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);