hoffstadt / hoffstadt/DearPyGui

DPG eats one pixel on resize (not constant behaviour)

Open
#2,519 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.