Skip to content

After using addFloatingGroup for a floating panel, the components in the panel disappear when restoring it. #996

@tuwang2020

Description

@tuwang2020

After using addFloatingGroup to create a floating panel, when I try to add the panel back using const addGroup = props.params.containerApi.addGroup(); and props.params.api.moveTo({ group: addGroup }), I find that the components in the panel disappear. However, when I move this panel to another group, the components in the panel appear normally. The code is as follows::

const handlePopout = () => {
if (props.params.api.location.type === 'floating') {
const addGroup = props.params.containerApi.addGroup();
props.params.api.moveTo({ group:addGroup });
}else{
props.params.containerApi.addFloatingGroup(props.params.group, {
position: {
width: 800,
height: 800,
bottom: 50,
right: 50,
},
})
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions