fix: remove setting up viewport height to derived from grid element (#1673)

This commit is contained in:
Bartłomiej Głownia 2022-10-06 17:38:31 +02:00 committed by GitHub
parent ad9436c7cf
commit 4ca22c4e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,11 +295,10 @@ export const Orderbook = ({
return; return;
} }
const { const {
contentRect: { width, height }, contentRect: { width },
} = entries[0]; } = entries[0];
headerElement.current.style.width = `${width}px`; headerElement.current.style.width = `${width}px`;
footerElement.current.style.width = `${width}px`; footerElement.current.style.width = `${width}px`;
setViewportHeight(height);
}, },
[headerElement, footerElement] [headerElement, footerElement]
); );