DearPyGui
DearPyGui copied to clipboard
DPG eats one pixel on resize (not constant behaviour)
Version of Dear PyGui
Version: 2.0.0 Operating System: Windows 10
My Issue/Question
With a simple and empty application, by just clicking to resize the app, sometimes the library eats one pixel.
Screenshots/Video
https://github.com/user-attachments/assets/687653a0-0a49-45ab-bc0c-31500f064497
Minimal example
import dearpygui.dearpygui as dpg
dpg.create_context()
def resize_callback(_, d):
print(d)
dpg.set_viewport_resize_callback(resize_callback)
dpg.create_viewport(width = 400, height = 300)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()