From 8d7fe5059cc6cf3de709c25354fd6fa199955420 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Wed, 7 Jun 2017 17:54:00 +0300 Subject: [PATCH] UI: Fix dashboard layout. --- ui/src/app/dashboard/dashboard.controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/app/dashboard/dashboard.controller.js b/ui/src/app/dashboard/dashboard.controller.js index 31892a6ce4..ac14f7953b 100644 --- a/ui/src/app/dashboard/dashboard.controller.js +++ b/ui/src/app/dashboard/dashboard.controller.js @@ -138,10 +138,10 @@ export default function DashboardController(types, dashboardUtils, widgetService } vm.mainLayoutHeight = function() { - if (vm.isEditingWidget && vm.editingLayoutCtx.id === 'main') { + if (!vm.isEditingWidget || vm.editingLayoutCtx.id === 'main') { return '100%'; } else { - return 'auto'; + return '0px'; } } @@ -154,10 +154,10 @@ export default function DashboardController(types, dashboardUtils, widgetService } vm.rightLayoutHeight = function() { - if (vm.isEditingWidget && vm.editingLayoutCtx.id === 'right') { + if (!vm.isEditingWidget || vm.editingLayoutCtx.id === 'right') { return '100%'; } else { - return 'auto'; + return '0px'; } }