From 21f702f7c985abc7b905978c09d3c24cbfe3e033 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Wed, 31 Jul 2019 18:56:06 +0200 Subject: [PATCH] TablePanel: Remove scroll option on TablePanel (#18318) --- public/app/plugins/panel/table/editor.html | 82 +++++++++++++--------- public/app/plugins/panel/table/module.ts | 4 +- 2 files changed, 50 insertions(+), 36 deletions(-) diff --git a/public/app/plugins/panel/table/editor.html b/public/app/plugins/panel/table/editor.html index 582a2366584..47874439713 100644 --- a/public/app/plugins/panel/table/editor.html +++ b/public/app/plugins/panel/table/editor.html @@ -1,54 +1,68 @@
-
-
Data
+
+
Data
- +
-
- -
-
- -
-
- -
-
-
+
+ +
+
+ +
+
+ +
+
+
-
-
Paging
+
+
Paging
- +
-
- +
diff --git a/public/app/plugins/panel/table/module.ts b/public/app/plugins/panel/table/module.ts index 075765d626d..b8d2b1e951a 100644 --- a/public/app/plugins/panel/table/module.ts +++ b/public/app/plugins/panel/table/module.ts @@ -41,7 +41,7 @@ class TablePanelCtrl extends MetricsPanelCtrl { }, ], columns: [], - scroll: true, + fontSize: '100%', sort: { col: 0, desc: true }, }; @@ -243,7 +243,7 @@ class TablePanelCtrl extends MetricsPanelCtrl { appendTableRows(tbodyElem); appendPaginationControls(footerElem); - rootElem.css({ 'max-height': panel.scroll ? getTableHeight() : '' }); + rootElem.css({ 'max-height': getTableHeight() }); } // hook up link tooltips