hoffstadt / hoffstadt/DearPyGui

[nodes] Tree node continues through the parent

Open
#1,971 2 comments 0 reactions 0 assignees View on GitHub
state: pending 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.8.0
Operating System: Ubuntu 22.04

## My Issue/Question

When adding a tree node to a node it doesn't maintain the group or node size.

## To Reproduce

Just run the example and hover on it

## Expected behavior

Ability to control its size

## Screenshots/Video

![bug1](https://user-images.githubusercontent.com/30077568/205960463-b4910311-ed58-4641-92f3-f735e44d692a.png)

## Standalone, minimal, complete and verifiable example

```python

import dearpygui.dearpygui as dpg

dpg.create_context()

# callback runs when user attempts to connect attributes
def link_callback(sender, app_data):
# app_data -> (link_id1, link_id2)
dpg.add_node_link(app_data[0], app_data[1], parent=sender)

# callback runs when user attempts to disconnect attributes
def delink_callback(sender, app_data):
# app_data -> link_id
dpg.delete_item(app_data)

with dpg.window(label="Tutorial", width=400, height=400):

with dpg.node_editor(callback=link_callback, delink_callback=delink_callback):
with dpg.node(label="Node 1"):
with dpg.node_attribute(label="Node A1"):
dpg.add_tree_node(label="ok")

dpg.create_viewport(title='Custom Title', width=800, height=600)
dpg.setup_dearpygui()
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.