You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dynamically created nested grid disappeared when dragging out (doesn't restore) #2948
not high on my priority as I don't use nested grid at work, let alone dynamically nested grids. You can donate if you want it fixed sooner - reach out on slack. thanks.
changed the title [-]nested grid disappeared without a trace[/-][+]dynamically created nested grid disappeared when dragging out (doesn't restore)[/+]on Feb 17, 2025
The function "removeAsSubGrid" adds a judgment to ensure that it is not eliminated
removeAsSubGrid(nodeThatRemoved){if(!nodeThatRemoved._event){return}constpGrid=this.parentGridNode?.gridif(!pGrid)returnpGrid.batchUpdate()pGrid.removeWidget(this.parentGridNode.el,true,true)this.engine.nodes.forEach((n)=>{// migrate any children over and offsetting by our locationn.x+=this.parentGridNode.xn.y+=this.parentGridNode.ypGrid.makeWidget(n.el,n)})pGrid.batchUpdate(false)if(this.parentGridNode)deletethis.parentGridNode.subGriddeletethis.parentGridNode// create an artificial event for the original grid now that this one is gone (got a leave, but won't get enter)if(nodeThatRemoved){window.setTimeout(()=>Utils.simulateMouseEvent(nodeThatRemoved._event,"mouseenter",pGrid.el),0)}}
Activity
adumesny commentedon Feb 17, 2025
yep, I see that...
jujingyi520 commentedon Feb 17, 2025
May I ask when you would like to fix this BUG ^ - ^
adumesny commentedon Feb 17, 2025
not high on my priority as I don't use nested grid at work, let alone dynamically nested grids. You can donate if you want it fixed sooner - reach out on slack. thanks.
[-]nested grid disappeared without a trace[/-][+]dynamically created nested grid disappeared when dragging out (doesn't restore)[/+]jujingyi520 commentedon Feb 24, 2025
The function "removeAsSubGrid" adds a judgment to ensure that it is not eliminated
adumesny commentedon Feb 24, 2025
why are you closing this when it is not fixed in the lib ? are yu saying the first 2 lines fixes the issue now ?
jujingyi520 commentedon Feb 24, 2025
Yes.
jujingyi520 commentedon Feb 24, 2025
Are you still working after 6:00 at night? It is half past ten Beijing time. 😃
adumesny commentedon Feb 24, 2025
you can submit a code review and get credit with the fix. thanks.
and I'm always working :) (weekend for this lib. Sunday night right now)
adumesny commentedon Jun 21, 2026
that fix is not correct either. in that video the subgrid was creatde dynamically and I expect to remove it and restore the widget inside ouside
dynamically created nested grid disappeared when dragging out