Open m-holger opened 3 years ago
@hoffstadt I can confirm this! It seems that the bounding boxes for the items inside the nodes are stacked from top to bottom, starting with the node that was created first. The draw order is dependent on which node was active last, but the bounding box order is not influenced by this.
This appears to be related to this. Will fix when he resolves the issue in imnodes.
Is this still an issue in 0.8?
Is this still an issue in 0.8?
@hoffstadt It is still an issue in 1.9.1 This is actually pretty severe.
Version of Dear PyGui
Version: 0.6.415 Operating System: Mint 20.1 Cinnamon
My Issue/Question
In node_editor, if 2 nodes with buttons are stacked on top of each other and the button is clicked, the callback on the bottom node is called instead of the callback of the visible top node.
To Reproduce
Run the sample and click on 8 - 5 is printed. WRONG Drag the node to different place and click on 8 again - 8 is printed. Click on 5 - 5 is printed
Expected behavior
Correct callback is executed.
Screenshots/Video
Standalone, minimal, complete and verifiable example