Просмотр исходного кода

Fix for panel height in fullscreen mode

Torkel Ödegaard 10 лет назад
Родитель
Сommit
94415e2b60

+ 2 - 2
src/app/features/panel/panelDirective.js

@@ -30,8 +30,8 @@ function (angular, $, config) {
         link: function(scope, elem) {
         link: function(scope, elem) {
           var panelContainer = elem.find('.panel-container');
           var panelContainer = elem.find('.panel-container');
 
 
-          scope.$watchGroup(['fullscreen', 'panel.height', 'row.height'], function() {
-            panelContainer.css({ minHeight: scope.panel.height || scope.row.height, display: 'block' });
+          scope.$watchGroup(['fullscreen', 'height', 'panel.height', 'row.height'], function() {
+            panelContainer.css({ minHeight: scope.height || scope.panel.height || scope.row.height, display: 'block' });
             elem.toggleClass('panel-fullscreen', scope.fullscreen ? true : false);
             elem.toggleClass('panel-fullscreen', scope.fullscreen ? true : false);
           });
           });
         }
         }

+ 0 - 1
src/app/partials/dasheditor.html

@@ -31,7 +31,6 @@
 					</div>
 					</div>
 					<editor-opt-bool text="Hide controls (CTRL+H)" model="dashboard.hideControls"></editor-opt-bool>
 					<editor-opt-bool text="Hide controls (CTRL+H)" model="dashboard.hideControls"></editor-opt-bool>
           <editor-opt-bool text="Shared Crosshair (CTRL+O)" model="dashboard.sharedCrosshair"></editor-opt-bool>
           <editor-opt-bool text="Shared Crosshair (CTRL+O)" model="dashboard.sharedCrosshair"></editor-opt-bool>
-					<editor-opt-bool text="Editable" model="dashboard.editable"></editor-opt-bool>
 				</div>
 				</div>
 			</div>
 			</div>
 			<div class="editor-row">
 			<div class="editor-row">

+ 1 - 1
src/css/less/variables.dark.less

@@ -28,7 +28,7 @@
 // grafana Variables
 // grafana Variables
 // -------------------------
 // -------------------------
 @grafanaPanelBackground: 	@grayDarker;
 @grafanaPanelBackground: 	@grayDarker;
-@grafanaPanelBorder: 		solid 1px @grayDark;
+@grafanaPanelBorder: 		  solid 1px @grayDark;
 @grafanaTriggerBorder:		solid 1px #555;
 @grafanaTriggerBorder:		solid 1px #555;
 
 
 // Graphite Target Editor
 // Graphite Target Editor