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

Panel: css fix for panel fullscreen/edit mode for latest chrome 38 and Firefox 33, #954

Torkel Ödegaard 11 лет назад
Родитель
Сommit
6c83699e6f

+ 0 - 1
src/app/dashboards/default.json

@@ -101,7 +101,6 @@
           "legend_counts": true,
           "timezone": "browser",
           "percentage": false,
-          "zerofill": true,
           "nullPointMode": "connected",
           "steppedLine": false,
           "tooltip": {

+ 11 - 0
src/app/dashboards/scripted.js

@@ -68,6 +68,17 @@ for (var i = 0; i < rows; i++) {
             'target': "randomWalk('random walk2')"
           }
         ],
+        seriesOverrides: [
+          {
+            alias: '/random/',
+            yaxis: 2,
+            fill: 0,
+            linewidth: 5
+          }
+        ],
+        tooltip: {
+          shared: true
+        }
       }
     ]
   });

+ 0 - 1
src/app/dashboards/template_vars.json

@@ -65,7 +65,6 @@
             "avg": false
           },
           "percentage": false,
-          "zerofill": true,
           "nullPointMode": "connected",
           "steppedLine": false,
           "tooltip": {

+ 0 - 4
src/app/panels/graph/module.js

@@ -151,10 +151,6 @@ function (angular, app, $, _, kbn, moment, TimeSeries) {
        * queries
        */
       percentage    : false,
-      /** @scratch /panels/histogram/3
-       * zerofill:: Improves the accuracy of line charts at a small performance cost.
-       */
-      zerofill      : true,
 
       nullPointMode : 'connected',
 

+ 5 - 3
src/css/less/grafana.less

@@ -115,7 +115,7 @@
   position: fixed;
   left: 0px;
   right: 0px;
-  top: 54px;
+  top: 51px;
   height: 100%;
   padding: 0 10px;
   background: @grafanaPanelBackground;
@@ -133,9 +133,11 @@
 
 .dashboard-fullscreen {
   .main-view-container {
-    height: 0;
     overflow: hidden;
-    padding: 0;
+    height: 0;
+    .row-control-inner {
+      display: none;
+    }
   }
 }
 

+ 1 - 1
src/css/less/submenu.less

@@ -1,6 +1,6 @@
 .submenu-controls-visible:not(.hide-controls) {
   .panel-fullscreen {
-    top: 91px;
+    top: 88px;
   }
 }