diff --git a/src/app/panels/bettermap/module.js b/src/app/panels/bettermap/module.js
index 9b9425fa36bb2..e4d15116de347 100644
--- a/src/app/panels/bettermap/module.js
+++ b/src/app/panels/bettermap/module.js
@@ -227,7 +227,7 @@ function (angular, app, _, L, localRequire) {
var map, layerGroup;
function render_panel() {
- elem.css({height:scope.row.height});
+ elem.css({height:scope.panel.height||scope.row.height});
scope.require(['./leaflet/plugins'], function () {
scope.panelMeta.loading = false;
diff --git a/src/app/panels/goal/module.js b/src/app/panels/goal/module.js
index d23c1711c7f14..e22e4c6e369e0 100644
--- a/src/app/panels/goal/module.js
+++ b/src/app/panels/goal/module.js
@@ -167,7 +167,7 @@ define([
// Function for rendering panel
function render_panel() {
// IE doesn't work without this
- elem.css({height:scope.row.height});
+ elem.css({height:scope.panel.height||scope.row.height});
var label;
@@ -175,7 +175,8 @@ define([
show: scope.panel.labels,
radius: 0,
formatter: function(label, series){
- var font = parseInt(scope.row.height.replace('px',''),10)/8 + String('px');
+ var font = parseInt(
+ (scope.panel.height||scope.row.height).replace('px',''),10)/8 + String('px');
if(!(_.isUndefined(label))) {
return '
'+
Math.round(series.percent)+'%
';
diff --git a/src/app/panels/histogram/module.js b/src/app/panels/histogram/module.js
index d463ba58e220b..8438b7f748367 100644
--- a/src/app/panels/histogram/module.js
+++ b/src/app/panels/histogram/module.js
@@ -607,7 +607,7 @@ function (angular, app, $, _, kbn, moment, timeSeries, numeral) {
function render_panel(data) {
// IE doesn't work without this
try {
- elem.css({height:scope.row.height});
+ elem.css({height:scope.panel.height||scope.row.height});
} catch(e) {return;}
// Populate from the query service
diff --git a/src/app/panels/hits/module.js b/src/app/panels/hits/module.js
index 413ea7f723817..bef0952ec20f8 100644
--- a/src/app/panels/hits/module.js
+++ b/src/app/panels/hits/module.js
@@ -206,7 +206,7 @@ define([
// Function for rendering panel
function render_panel() {
// IE doesn't work without this
- elem.css({height:scope.row.height});
+ elem.css({height:scope.panel.height||scope.row.height});
try {
_.each(scope.data,function(series) {
diff --git a/src/app/panels/map/module.js b/src/app/panels/map/module.js
index 58d1185fc3c58..c6b236cbb27c1 100644
--- a/src/app/panels/map/module.js
+++ b/src/app/panels/map/module.js
@@ -170,7 +170,7 @@ function (angular, app, _, $) {
function render_panel() {
elem.empty();
- elem.css({height:scope.row.height});
+ elem.css({height:scope.panel.height||scope.row.height});
$('.jvectormap-zoomin,.jvectormap-zoomout,.jvectormap-label').remove();
require(['./panels/map/lib/map.'+scope.panel.map], function () {
elem.vectorMap({
diff --git a/src/app/panels/table/module.html b/src/app/panels/table/module.html
index a182cf5065091..b1aa49f7920ed 100644
--- a/src/app/panels/table/module.html
+++ b/src/app/panels/table/module.html
@@ -57,7 +57,7 @@
-
+
Fields
@@ -97,7 +97,7 @@
-
+
diff --git a/src/app/panels/terms/module.js b/src/app/panels/terms/module.js
index a436cc74c1660..d7df9c1682b15 100644
--- a/src/app/panels/terms/module.js
+++ b/src/app/panels/terms/module.js
@@ -293,7 +293,7 @@ function (angular, app, _, $, kbn) {
build_results();
// IE doesn't work without this
- elem.css({height:scope.row.height});
+ elem.css({height:scope.panel.height||scope.row.height});
// Make a clone we can operate on.
chartData = _.clone(scope.data);