fix: fixed issue that caused scroll bar to comeup by default

This commit is contained in:
Johnson Cherian 2024-01-09 11:12:18 +05:30
parent fe9815eb20
commit 8cf0c49cd1
2 changed files with 3 additions and 3 deletions

View file

@ -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,
};

View file

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