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

Elements shifted in table_row with tooltip #1255

Closed
tmichela opened this issue Sep 24, 2021 · 2 comments
Closed

Elements shifted in table_row with tooltip #1255

tmichela opened this issue Sep 24, 2021 · 2 comments
Labels
priority: high high priority state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@tmichela
Copy link

Version of Dear PyGui

Version: 0.8.64
Operating System: MacOs 11.6

My Issue/Question

Adding a tooltip on a widget contained in a table_row will shift later widget to the next column

To Reproduce

with dpg.window():
    with dpg.table():
        dpg.add_table_column(label='a')
        dpg.add_table_column(label='b')
        dpg.add_table_column(label='c')
        with dpg.table_row():
            a = dpg.add_text('something')
            dpg.add_text('something else')
            dpg.add_text('blah')
        with dpg.tooltip(parent=a):
            dpg.add_text('that\'s something!')

dpg.start_dearpygui()

Expected behavior

Exptected widgets to not be shifted to the next column.

Screenshots/Video

Screenshot 2021-09-24 at 13 33 21

not using a table_row, works as expected:

with dpg.window():
    with dpg.table():
        dpg.add_table_column(label='a')
        dpg.add_table_column(label='b')
        dpg.add_table_column(label='c')

        a = dpg.add_text('something')
        dpg.add_table_next_column()
        dpg.add_text('something else')
        dpg.add_table_next_column()
        dpg.add_text('blah')
        dpg.add_table_next_column()

        with dpg.tooltip(parent=a):
            dpg.add_text('that\'s something!')

dpg.start_dearpygui()

Screenshot 2021-09-24 at 13 35 45

@hoffstadt hoffstadt added type: bug bug state: pending not addressed yet priority: high high priority and removed bug state: pending not addressed yet labels Oct 13, 2021
@hoffstadt
Copy link
Owner

Fixed in next release.

@hoffstadt hoffstadt added the state: ready Fixed/Added and will be present in an upcoming release label Oct 15, 2021
@hoffstadt
Copy link
Owner

v1 example:

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window():
    a = dpg.add_text('something')

    with dpg.table():
        dpg.add_table_column(label='a')
        dpg.add_table_column(label='b')
        dpg.add_table_column(label='c')
        with dpg.table_row():
            a = dpg.add_text('something')
            dpg.add_text('something else')
            dpg.add_text('blah')
            with dpg.tooltip(a):
                dpg.add_text('that\'s something!')

# main loop
dpg.show_viewport()
while dpg.is_dearpygui_running():
    dpg.render_dearpygui_frame()  

dpg.destroy_context()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high high 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