Skip to content

wrap option in add_text does not propperly work in a table #1532

Closed
@Mstpyt

Description

Version of Dear PyGui

Version: 1.2.2
Operating System: Windows 10

My Issue/Question

If i add a bigger table with bigger texts the wrap function does not propperly work. it only works in the first column, every collumn that folls, wraps at 1.

Expected behavior

The wrap should work on all items and not only on the first column, i think it has something to do with the policy, but i also tested all policys and they are all bad for that example.

Screenshots/Video

grafik

Standalone, minimal, complete and verifiable example

# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg
dpg.create_context()


with dpg.window(tag="main"):
    with dpg.table(tag="main_table", parent="main_window", header_row=True, no_host_extendX=True, no_host_extendY=True,
                   borders_innerH=True, borders_outerH=True, borders_innerV=True,
                   borders_outerV=True, row_background=True, hideable=True, reorderable=True,
                   resizable=True, sortable=False, policy=dpg.mvTable_SizingFixedSame,
                   scrollX=True, delay_search=True, scrollY=False):
        for _ in range(80):
            dpg.add_table_column(label=_+1)
        for _ in range(80):
            with dpg.table_row():
                for j in range(80):
                    dpg.add_text("ddddddddddddddddddddddddd", wrap=100)


dpg.create_viewport(title='Custom Title', width=800, height=600)
dpg.set_primary_window("main", True)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions