Skip to content

Fix: Modal window sample not scaled to dpi#2147

Open
HO-COOH wants to merge 1 commit intomicrosoft:mainfrom
HO-COOH:fix-modal-window-dpi
Open

Fix: Modal window sample not scaled to dpi#2147
HO-COOH wants to merge 1 commit intomicrosoft:mainfrom
HO-COOH:fix-modal-window-dpi

Conversation

@HO-COOH
Copy link
Contributor

@HO-COOH HO-COOH commented Mar 20, 2026

Description

The Modal window example size is not scaled to dpi currently. On a high dpi screen,the window content is not even complete. This PR fixes it, together with sample code.

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Before:

image

After:

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant