DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Child items of child window doesn't respect nodes depth

Open QuattroMusic opened this issue 3 years ago • 0 comments

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 image

Standalone, minimal, complete and verifiable example

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()

QuattroMusic avatar Apr 24 '22 13:04 QuattroMusic