From 7426ee88386638fb9c5982d88c11b0b629fcdd7e Mon Sep 17 00:00:00 2001 From: Mehak Nasir <67791278+mehaknasir@users.noreply.github.com> Date: Fri, 19 Aug 2022 18:45:04 +0500 Subject: [PATCH] fix: fix added for screen flickering (#257) --- src/discussions/data/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discussions/data/hooks.js b/src/discussions/data/hooks.js index 107bb6d6..c2b6c8cc 100644 --- a/src/discussions/data/hooks.js +++ b/src/discussions/data/hooks.js @@ -108,7 +108,7 @@ function getOuterHeight(element) { const elementContainerHeight = element.parentNode.clientHeight; // The difference between the body height and the container height is the size of the header footer etc. // Add to that the element's own height and we get the size the UI should be to fit everything. - return bodyHeight - elementContainerHeight + element.scrollHeight; + return bodyHeight - elementContainerHeight + element.scrollHeight + 10; } /**