mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix: fixed issue that caused scroll bar to comeup by default
This commit is contained in:
parent
fe9815eb20
commit
8cf0c49cd1
2 changed files with 3 additions and 3 deletions
|
|
@ -26,8 +26,8 @@ export const Container = function Container({
|
||||||
border: `1px solid ${borderColor}`,
|
border: `1px solid ${borderColor}`,
|
||||||
height,
|
height,
|
||||||
display: visibility ? 'flex' : 'none',
|
display: visibility ? 'flex' : 'none',
|
||||||
overflow: draggedSubContainer ? 'unset' : 'hidden auto',
|
// overflow: draggedSubContainer ? 'unset' : 'hidden auto',
|
||||||
// overflow: 'hidden auto',
|
overflow: 'hidden auto',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
boxShadow,
|
boxShadow,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ export const SubContainer = ({
|
||||||
if (isParentModal && subContainerHeight <= componentBottom) {
|
if (isParentModal && subContainerHeight <= componentBottom) {
|
||||||
subContainerHeightRef.current = componentBottom + 100;
|
subContainerHeightRef.current = componentBottom + 100;
|
||||||
} else {
|
} else {
|
||||||
subContainerHeightRef.current = subContainerHeight + 30;
|
subContainerHeightRef.current = subContainerHeight + 28;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('console.error', error);
|
console.error('console.error', error);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue