From 8cf0c49cd1461d4cd0e74c23abcb6d0b4e30fdcc Mon Sep 17 00:00:00 2001 From: Johnson Cherian Date: Tue, 9 Jan 2024 11:12:18 +0530 Subject: [PATCH] fix: fixed issue that caused scroll bar to comeup by default --- frontend/src/Editor/Components/Container.jsx | 4 ++-- frontend/src/Editor/SubContainer.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Editor/Components/Container.jsx b/frontend/src/Editor/Components/Container.jsx index 1fcae32397..511546edd3 100644 --- a/frontend/src/Editor/Components/Container.jsx +++ b/frontend/src/Editor/Components/Container.jsx @@ -26,8 +26,8 @@ export const Container = function Container({ border: `1px solid ${borderColor}`, height, display: visibility ? 'flex' : 'none', - overflow: draggedSubContainer ? 'unset' : 'hidden auto', - // overflow: 'hidden auto', + // overflow: draggedSubContainer ? 'unset' : 'hidden auto', + overflow: 'hidden auto', position: 'relative', boxShadow, }; diff --git a/frontend/src/Editor/SubContainer.jsx b/frontend/src/Editor/SubContainer.jsx index bb3c0c5780..6412a74898 100644 --- a/frontend/src/Editor/SubContainer.jsx +++ b/frontend/src/Editor/SubContainer.jsx @@ -154,7 +154,7 @@ export const SubContainer = ({ if (isParentModal && subContainerHeight <= componentBottom) { subContainerHeightRef.current = componentBottom + 100; } else { - subContainerHeightRef.current = subContainerHeight + 30; + subContainerHeightRef.current = subContainerHeight + 28; } } catch (error) { console.error('console.error', error);