[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 sortedNodes = sortNodes(options.sort, nodes);
|
||||||
const map = nodesToWaffleMap(sortedNodes);
|
const map = nodesToWaffleMap(sortedNodes);
|
||||||
return (
|
return (
|
||||||
<AutoSizer content>
|
<AutoSizer bounds>
|
||||||
{({ measureRef, content: { width = 0, height = 0 } }) => {
|
{({ measureRef, bounds: { width = 0, height = 0 } }) => {
|
||||||
const groupsWithLayout = applyWaffleMapLayout(map, width, height);
|
const groupsWithLayout = applyWaffleMapLayout(map, width, height);
|
||||||
return (
|
return (
|
||||||
<WaffleMapOuterContainer
|
<WaffleMapOuterContainer
|
||||||
|
|
Loading…
Reference in a new issue