mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix/grid-to-list (#10522)
This commit is contained in:
parent
f405d3db74
commit
0526d57c0c
1 changed files with 6 additions and 2 deletions
|
|
@ -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']));
|
||||
|
|
|
|||
Loading…
Reference in a new issue