Open NickelLiang opened 2 years ago
Version: 1.3.1 Operating System: macOS 12.2
Changing a docked window label after creation will cause such window to undock itself.
Create a window, dock it, then change its label. See minimal example.
Changing the window title should not undock such a window.
import dearpygui.dearpygui as dpg dpg.create_context() dpg.configure_app(docking=True, docking_space=True) with dpg.window(label="Default Label", width=400, height=400, tag="__window", autosize=True): dpg.add_text("1. Dock me!") dpg.add_text("2. Click button below. Window label will change.") dpg.add_button(label="Change window label", callback=lambda: dpg.set_item_label("__window", "New Label")) dpg.add_text("3. Observe that the window now is undocked.") dpg.create_viewport(title='DPG', width=800, height=600) dpg.setup_dearpygui() dpg.show_viewport() dpg.start_dearpygui() dpg.destroy_context()
Nice catch! We will fix this ASAP.
High ! Any updates on this bug ? I just came across this one by accident on version 1.9.0 and it is a bit interferring with my project...
Version of Dear PyGui
Version: 1.3.1 Operating System: macOS 12.2
My Issue/Question
Changing a docked window label after creation will cause such window to undock itself.
To Reproduce
Create a window, dock it, then change its label. See minimal example.
Expected behavior
Changing the window title should not undock such a window.
Screenshots/Video
Standalone, minimal, complete and verifiable example