hoffstadt / hoffstadt/DearPyGui

Child items of child window doesn't respect nodes depth

Open
#1,722 0 comments 0 reactions 0 assignees View on GitHub
category: node editor priority: medium type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 1.5.1
Operating System: Windows 10

## To Reproduce

Execute the code and move the two nodes on top of each others

## Screenshots

![image](https://user-images.githubusercontent.com/64004269/164979475-ddf8f35c-2c87-41d5-8803-384eda033695.png)
![image](https://user-images.githubusercontent.com/64004269/164979491-7100ae56-3e03-4f41-934e-7b2e0d26710a.png)

## Standalone, minimal, complete and verifiable example

```python
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window(width=1000,height=700,pos=[100,0]):
with dpg.node_editor(tag="node_editor",callback=lambda s, data: dpg.add_node_link(data[0], data[1],parent=s),delink_callback=lambda s: dpg.delete_item(s)):
with dpg.node():
with dpg.node_attribute(attribute_type=dpg.mvNode_Attr_Static):
with dpg.child_window(width=100,height=100):
dpg.add_selectable(label="i'm selectable")
dpg.add_text("i'm a text")
with dpg.node():
with dpg.node_attribute(attribute_type=dpg.mvNode_Attr_Static):
with dpg.child_window(width=200,height=100):
dpg.add_button(label="i'm a button")
dpg.add_input_text(default_value="i'm an input text",width=200)

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.