From 5549ac9769aa65eb910822fea3e0deeaa5087f14 Mon Sep 17 00:00:00 2001 From: Sirazh Gabdullin Date: Wed, 12 Apr 2023 23:39:08 +0600 Subject: [PATCH] Fix: Data Table rendering only in a small scrollable portion of the screen (#3816) * Fix table not adjusting height on initial page load Signed-off-by: Sirazh Gabdullin * formatting typo fix Signed-off-by: Sirazh Gabdullin * Update CHANGELOG.md Signed-off-by: Sirazh Gabdullin --------- Signed-off-by: Sirazh Gabdullin Signed-off-by: David Sinclair --- CHANGELOG.md | 1 + .../vis_type_table/public/components/table_vis_app.scss | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8263f9380e25..861e2581df50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -115,6 +115,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Clean up and rebuild `@osd/pm` ([#3570](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3570)) - [Vega] Add Filter custom label for opensearchDashboardsAddFilter ([#3640](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3640)) - [Timeline] Fix y-axis label color in dark mode ([#3698](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3698)) +- [Table Visualization] Fix data table not adjusting height on the initial load ([#3816](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3816)) ### 🚞 Infrastructure diff --git a/src/plugins/vis_type_table/public/components/table_vis_app.scss b/src/plugins/vis_type_table/public/components/table_vis_app.scss index af6558774da3..876847667418 100644 --- a/src/plugins/vis_type_table/public/components/table_vis_app.scss +++ b/src/plugins/vis_type_table/public/components/table_vis_app.scss @@ -1,3 +1,10 @@ +.visTable { + display: flex; + flex-direction: column; + flex: 1 0 0; + overflow: auto; +} + .visTable__group { padding: $euiSizeS; margin-bottom: $euiSizeL;