[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:
Zacqary Adam Xeper 2020-10-28 13:03:36 -05:00 committed by GitHub
parent d7a78229e4
commit 6272f4e0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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