From 1540e95b97cbe7e87a0d56f2242509603fd35356 Mon Sep 17 00:00:00 2001 From: Torkel Odegaard Date: Mon, 6 Jan 2014 15:02:41 +0100 Subject: [PATCH] improved height of graph in edit mode (adjusted to document height) --- src/app/panels/graphite/editor.html | 1 - src/app/panels/graphite/module.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/panels/graphite/editor.html b/src/app/panels/graphite/editor.html index d57be87fcbe..87bbc27b9b9 100644 --- a/src/app/panels/graphite/editor.html +++ b/src/app/panels/graphite/editor.html @@ -116,6 +116,5 @@
-
\ No newline at end of file diff --git a/src/app/panels/graphite/module.js b/src/app/panels/graphite/module.js index cc96b750bde..c8736fdbcc4 100644 --- a/src/app/panels/graphite/module.js +++ b/src/app/panels/graphite/module.js @@ -371,9 +371,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) { $scope.enterFullscreenMode = function(options) { var docHeight = $(window).height(); + var editHeight = Math.floor(docHeight * 0.3); + var fullscreenHeight = Math.floor(docHeight * 0.7); var oldTimeRange = $scope.range; - $scope.height = options.edit ? 200 : Math.floor(docHeight * 0.7); + $scope.height = options.edit ? editHeight : fullscreenHeight; $scope.editMode = options.edit; if (!$scope.fullscreen) {