Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Mstpyt opened this issue Jan 7, 2022 · 3 comments
Closed

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

Mstpyt opened this issue Jan 7, 2022 · 3 comments
Labels
priority: medium medium priority state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@Mstpyt
Copy link
Collaborator

Mstpyt commented Jan 7, 2022

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()
@Mstpyt Mstpyt added state: pending not addressed yet type: bug bug labels Jan 7, 2022
@hoffstadt
Copy link
Owner

Checking into it. Heads up though. 64 columns is the max. We should throw an error.

@hoffstadt hoffstadt added priority: medium medium priority state: ready Fixed/Added and will be present in an upcoming release and removed state: pending not addressed yet labels Jan 9, 2022
@hoffstadt
Copy link
Owner

Fixed in next release (not actually a bug). Its how imgui works but we are making it work how you suspect it should here.

@Mstpyt
Copy link
Collaborator Author

Mstpyt commented Jan 9, 2022

I really appreciate it !

hoffstadt added a commit that referenced this issue Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium medium priority state: ready Fixed/Added and will be present in an upcoming release type: bug bug
Projects
None yet
Development

No branches or pull requests

2 participants