From d7eb4c17ca56c9c07faf94efdb8465c68c8a665b Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Mon, 16 Jul 2018 15:25:02 -0700 Subject: [PATCH] Added div element to force horz scroll in table body (#2111) Fixes #2103 - Added div that is set to the calculated table width. When filtering is such that no rows are present in the tbody of the table, this element will still force a horizontal scroll in that area, allowing the user to horz scroll the headers; --- platform/features/table/res/sass/table.scss | 7 +++++++ platform/features/table/res/templates/mct-table.html | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/platform/features/table/res/sass/table.scss b/platform/features/table/res/sass/table.scss index e2ad3cff7b..534da1c432 100644 --- a/platform/features/table/res/sass/table.scss +++ b/platform/features/table/res/sass/table.scss @@ -65,3 +65,10 @@ mct-table { margin-bottom: 3px; } } + +.mct-table-scroll-forcer { + // Force horz scroll when needed; width set via JS + font-size: 0; + height: 1px; // Height 0 won't force scroll properly + position: relative; +} diff --git a/platform/features/table/res/templates/mct-table.html b/platform/features/table/res/templates/mct-table.html index 63c41d7867..69ab92ef35 100644 --- a/platform/features/table/res/templates/mct-table.html +++ b/platform/features/table/res/templates/mct-table.html @@ -59,6 +59,10 @@
+