dotnet / dotnet/winforms

[PerMonitorV2] Height of ListView in tabPage gets smaller and smaller when setting HighDpiMode to PermonitorV2 and moving multiple times through 100&300

Open
#6,789 0 comments 0 reactions 0 assignees View on GitHub
:construction: work in progress area-HDPI-PMv2
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version:
.NET Core 7.0.100-preview.3.22152.16

**Problem description:**
Height of ListView in tabPage gets smaller and smaller.
![Issue2](https://user-images.githubusercontent.com/54019172/156707762-9a4ecc6b-9eee-44b1-9c2b-63c99c1c19e4.gif)

**Expected behavior:**
The height should not change.

**Minimal repro:**
1. Extract attachment [PerMonitorHDPICore.-.NET.7.0.zip](https://github.com/dotnet/winforms/files/8183405/PerMonitorHDPICore.-.NET.7.0.zip), then build and run
2. Click “MdiParent-Simple Layout” button to open MdiParent1 Form
3. Move MdiParent Form multiple times between 100 and 300, and observe the ListView in TabControl

**More info**
1. This issue occurs when using private dlls based on PR #6752 .
2. This issue cannot repro on 100%&150%.
3. This issue also repro without private dlls.

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.