hoffstadt / hoffstadt/DearPyGui
DPG eats one pixel on resize (not constant behaviour)
Open
state: pending
type: bug
- Dominant language
- C++
- Stars
- 15.6k
- Forks
- 783
- PR merge metrics
- No merged PRs in 30d
Description
## 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
```python
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()
```
Contributor guide
Assessment
This issue has not been assessed yet.