DioxusLabs / DioxusLabs/dioxus

DPI doesn't always automatically adjust on Windows

Open
#3,603 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

When moving a window between different screens that have different DPI, more often than not does Dioxus not immediately recognize the DPI change. Instead you need to for example resize the window for it to recognize the change in DPI.

**Steps To Reproduce**

Steps to reproduce the behavior:

- Move the window from one screen to another with a different DPI.
- You should immediately see that it's the wrong DPI.
- Resizing the window will make the jump obvious.

**Expected behavior**

DPI should automatically adjust accordingly.

**Screenshots**

![Image](https://github.com/user-attachments/assets/03c27237-cdf8-4a7f-b14d-65a5312f0226)

**Environment:**
- Dioxus version: main @ https://github.com/DioxusLabs/dioxus/commit/eaf9f80abddd75a6963edf2f48e8e21765146122
- Rust version: 1.83.0
- OS info: Windows 11
- App platform: Desktop

**Questionnaire**

I'm interested in fixing this myself but don't know where to start

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.