diff --git a/frontend/src/Editor/Container.jsx b/frontend/src/Editor/Container.jsx index 7a0a9804eb..8ff3e7af59 100644 --- a/frontend/src/Editor/Container.jsx +++ b/frontend/src/Editor/Container.jsx @@ -588,12 +588,16 @@ export const Container = ({ if (parent) { const parentElem = document.getElementById(`canvas-${parent}`); const parentId = copyOfBoxes[parent] ? parent : parent?.split('-').slice(0, -1).join('-'); - const compoenentType = copyOfBoxes[parentId]?.component.component; + const componentType = copyOfBoxes[parentId]?.component.component; var parentHeight = parentElem?.clientHeight || _height; - if (_height > parentHeight && ['Tabs', 'Listview'].includes(compoenentType)) { + if (_height > parentHeight && ['Tabs', 'Listview'].includes(componentType)) { _height = parentHeight; y = 0; } + + if (componentType === 'Listview' && y > parentHeight) { + y = y % parentHeight; + } } const componentData = JSON.parse(JSON.stringify(copyOfBoxes[id]['component']));