elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.33k stars 7.97k forks source link

[Saved Search] Field statistics saved search embeddable can cause scrollbar in Dashboard #181921

Open Heenawter opened 1 week ago

Heenawter commented 1 week ago

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's EmbeddableFieldStatsTableWrapper.

Steps to reproduce:

  1. Create a field statistics saved search in the Discover plugin
  2. Add that embeddable to a dashboard
  3. Increase your time range to be big enough to cause a scrollbar in the embeddable
  4. 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. 🔥

Video:

https://github.com/elastic/kibana/assets/8698078/936927cb-7edb-4d44-9714-bfefe6ceab17