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

Tree node is not open by default with "default_open=True" when put into a hidden column #1878

Closed
sedenka opened this issue Aug 30, 2022 · 1 comment
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@sedenka
Copy link

sedenka commented Aug 30, 2022

Version of Dear PyGui

Version: 1.6.2
Operating System: Windows 10

My Issue/Question

I think the title just explains the problem.
Other related issues may be #1846 (for v1.6.3) and #1873 (losing status after minimizing).

To Reproduce

Steps to reproduce the behavior:

  1. Right-click on the header row of the table to show the "initially hidden column".
  2. The tree_node inside of the initially hidden column is not open by default as it should be.

Expected behavior

The tree_node should respect the default_open even inside of a disabled column.

Screenshots/Video

image

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

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

with dpg.window(label="Example Window", tag="Primary"):
    with dpg.table(width=-1, height=-1, hideable=True):
        dpg.add_table_column(label="visible column")
        dpg.add_table_column(label="initially hidden column", enabled=False)
        with dpg.table_row():
            with dpg.tree_node(label="Tree node", default_open=True):
                dpg.add_text("content")
            with dpg.tree_node(label="Tree node", default_open=True):
                dpg.add_text("content")

dpg.show_viewport()
dpg.set_primary_window("Primary", True)
dpg.start_dearpygui()
dpg.destroy_context()
@sedenka sedenka added state: pending not addressed yet type: bug bug labels Aug 30, 2022
@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release and removed state: pending not addressed yet labels Oct 17, 2022
@hoffstadt
Copy link
Owner

Fixed in next release.

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