hoffstadt / hoffstadt/DearPyGui

[nodes] Text on multiline inputs overlaps everything

Open
#1,970 0 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.02

## My Issue/Question

When adding multiline text input on a node, the letters overlap other nodes

## To Reproduce

Run the code in this issue and drag the nodes

## Expected behavior

White letters from multiline input not always on top

## Screenshots/Video

![ok](https://user-images.githubusercontent.com/30077568/205937111-8e029c27-7fec-4745-aca5-d724725031d5.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"):
text_str = "lorem ipsum\nloremipsum\nloremipsum"
dpg.add_input_text(tag="overlapper", label="text", default_value=text_str, multiline=True, tab_input=True, height=40)

with dpg.node_attribute(label="Node A2", attribute_type=dpg.mvNode_Attr_Output):
dpg.add_input_float(label="F2", width=150)

with dpg.node(label="Node 2"):
with dpg.node_attribute(label="Node A3"):
dpg.add_input_float(label="F3", width=200)

with dpg.node_attribute(label="Node A4", attribute_type=dpg.mvNode_Attr_Output):
dpg.add_input_float(label="F4", width=200)

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.