Describe the bug:
Depending on how many results are shown in the field statistics embeddable and the height of the browser window, it can cause an unnecessary scrollbar in the dashboard because the individual field items are still taking up height despite being hidden behind the panel's scroll.
Note that I've tagged both @elastic/kibana-data-discovery and @elastic/ml-ui because I'm not sure if it's coming from Discover's FieldStatisticsTable or ML's EmbeddableFieldStatsTableWrapper.
Steps to reproduce:
Create a field statistics saved search in the Discover plugin
Add that embeddable to a dashboard
Increase your time range to be big enough to cause a scrollbar in the embeddable
Decrease your window size if necessary - notice that the items hidden behind the embeddable scrollbar are still increasing the height of the dashboard viewport, which is causing a scrollbar. 🔥
Kibana version:
main
Browser version: Chrome
Describe the bug: Depending on how many results are shown in the field statistics embeddable and the height of the browser window, it can cause an unnecessary scrollbar in the dashboard because the individual field items are still taking up height despite being hidden behind the panel's scroll.
Note that I've tagged both @elastic/kibana-data-discovery and @elastic/ml-ui because I'm not sure if it's coming from Discover's
FieldStatisticsTable
or ML'sEmbeddableFieldStatsTableWrapper
.Steps to reproduce:
Video:
https://github.com/elastic/kibana/assets/8698078/936927cb-7edb-4d44-9714-bfefe6ceab17