Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: KryptonComboBox cuts of text on high DPI #1677

Closed
Ahmed-Abdelhameed opened this issue Jul 24, 2024 · 1 comment
Closed

[Bug]: KryptonComboBox cuts of text on high DPI #1677

Ahmed-Abdelhameed opened this issue Jul 24, 2024 · 1 comment
Labels
bug Something isn't working fixed This issue has been fixed. version:85-lts All things to do with V85 LTS. version:90 All things to do with V90.

Comments

@Ahmed-Abdelhameed
Copy link
Contributor

Ahmed-Abdelhameed commented Jul 24, 2024

When DPI scaling is enabled (tested with dpiAwarness=PerMonitorV2 and AutoScaleMode=Dpi), KryptonComboBox doesn't resize like other controls causing the text to be cut off.

This is how it looks on 125%:

image

And this is on 150%:

image

Both V85 and V90 are affected.

@Ahmed-Abdelhameed Ahmed-Abdelhameed added the bug Something isn't working label Jul 24, 2024
@giduac giduac added under investigation This bug/issue is currently under investigation. version:85-lts All things to do with V85 LTS. version:90 All things to do with V90. labels Jul 24, 2024
@Smurf-IV Smurf-IV added this to the Version 85 milestone Jul 24, 2024
@Ahmed-Abdelhameed
Copy link
Contributor Author

Okay, after some more testing, looks like this happens in .NET Core (.NET 8 is what I tested on) but not in .NET Framework. And the reason is that InternalComboBox.OnFontChanged doesn't get triggered on .NET 8, for some reason (I have no idea why at this point).

For now, we can set the initial value of ItemHeight based on the font rather than a fixed value. I will submit the PR soon.

@giduac giduac closed this as completed Jul 25, 2024
@PWagner1 PWagner1 added fixed This issue has been fixed. and removed under investigation This bug/issue is currently under investigation. labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed This issue has been fixed. version:85-lts All things to do with V85 LTS. version:90 All things to do with V90.
Projects
None yet
Development

No branches or pull requests

4 participants