From a8f4b0227f310632ef2242da1de387fe3b70d789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 10 Apr 2016 14:58:52 -0400 Subject: [PATCH] fix(graph): Fixed issue with legend height in table mode with few series, affected iframe embedding as well, fixes #4640 --- CHANGELOG.md | 2 +- public/app/core/components/switch.ts | 4 +- .../dashboard/partials/shareModal.html | 52 +++++++++---------- public/app/plugins/panel/graph/legend.js | 4 +- public/sass/components/_modals.scss | 6 +-- 5 files changed, 30 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0741e2e0ec..8e77be6b6f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ * **Graph Panel**: Fixed issue with axis labels overlapping Y-axis, fixes [#4626](https://github.com/grafana/grafana/issues/4626) * **InfluxDB**: Fixed issue with templating query containing template variable, fixes [#4602](https://github.com/grafana/grafana/issues/4602) * **Graph Panel**: Fixed issue with hiding series and stacking, fixes [#4557](https://github.com/grafana/grafana/issues/4557) -* **Mixed Datasources**: Fixed issue with mixing many datasources in same graph, fixes [#4604](https://github.com/grafana/grafana/issues/4604) +* **Graph Panel**: Fixed issue with legend height in table mode with few series, affected iframe embedding as well, fixes [#4640](https://github.com/grafana/grafana/issues/4640) # 3.0.0-beta2 (2016-04-04) diff --git a/public/app/core/components/switch.ts b/public/app/core/components/switch.ts index 1dddae20d49..10211b5b914 100644 --- a/public/app/core/components/switch.ts +++ b/public/app/core/components/switch.ts @@ -21,14 +21,14 @@ export class SwitchCtrl { id: any; /** @ngInject */ - constructor($scope) { + constructor($scope, private $timeout) { this.show = true; this.id = $scope.$id; } internalOnChange() { return new Promise(resolve => { - setTimeout(() => { + this.$timeout(() => { this.onChange(); resolve(); }); diff --git a/public/app/features/dashboard/partials/shareModal.html b/public/app/features/dashboard/partials/shareModal.html index 41c08fede0b..c8462c7bffc 100644 --- a/public/app/features/dashboard/partials/shareModal.html +++ b/public/app/features/dashboard/partials/shareModal.html @@ -38,31 +38,26 @@
-
-
+
+
-
-
- -
-
@@ -117,7 +113,7 @@

-