[Metrics UI] Fix a Chrome bug with Inventory View flickering at certain sizes (#81514)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
d7a78229e4
commit
6272f4e0fd
|
@ -45,8 +45,8 @@ export const Map: React.FC<Props> = ({
|
|||
const sortedNodes = sortNodes(options.sort, nodes);
|
||||
const map = nodesToWaffleMap(sortedNodes);
|
||||
return (
|
||||
<AutoSizer content>
|
||||
{({ measureRef, content: { width = 0, height = 0 } }) => {
|
||||
<AutoSizer bounds>
|
||||
{({ measureRef, bounds: { width = 0, height = 0 } }) => {
|
||||
const groupsWithLayout = applyWaffleMapLayout(map, width, height);
|
||||
return (
|
||||
<WaffleMapOuterContainer
|
||||
|
|
Loading…
Reference in a new issue