From 4ca22c4e980b6fb39c9a44f3e18970e093e8f586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Thu, 6 Oct 2022 17:38:31 +0200 Subject: [PATCH] fix: remove setting up viewport height to derived from grid element (#1673) --- libs/market-depth/src/lib/orderbook.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/market-depth/src/lib/orderbook.tsx b/libs/market-depth/src/lib/orderbook.tsx index e3d225dd3..f1cf58fc9 100644 --- a/libs/market-depth/src/lib/orderbook.tsx +++ b/libs/market-depth/src/lib/orderbook.tsx @@ -295,11 +295,10 @@ export const Orderbook = ({ return; } const { - contentRect: { width, height }, + contentRect: { width }, } = entries[0]; headerElement.current.style.width = `${width}px`; footerElement.current.style.width = `${width}px`; - setViewportHeight(height); }, [headerElement, footerElement] );