-
Notifications
You must be signed in to change notification settings - Fork 63
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]: **Regression** KComboBox text is clipped; as height is incorrect. #1455
Comments
I'm confused, With that much clipping, surely someone would have mentioned it as a show stopper before now !!? |
It seems it's just the MessageBox Demo app (At the moment) If I use the workaround mentioned here: #615 |
This "Maybe" a clue.
So the clue might be the designer (and at runtime) is picking up a null or small font for the height of the text area, |
Hi @Wagnerp, Please assign this one to me. |
@Wagnerp Testing this on alpha & the latest V80 release. |
V90 Fix (PR underway) // Working on Windows XP or earlier systems?
if (_osMajorVersion < 6)
{
// Fudge by adding one to the font height, this gives the actual space used by the
// combo box control to draw an individual item in the main part of the control
ItemHeight = Font.Height + 1;
}
else
{
// Vista performs differently depending of the use of themes...
if (IsAppThemed)
{
// Fudge by subtracting 1, which ensure correct sizing of combo box main area
//ItemHeight = Font.Height - 1;
// #1455 - lower part of the text can become clipped with chars like g, y, p, etc.
// when subtracting one from the font height.
ItemHeight = Font.Height;
}
else
{
// On under Vista without themes is the font height the actual height used
// by the combo box for the space required for drawing the actual item
ItemHeight = Font.Height;
}
} |
Hi @Wagnerp, Problem is fix. |
If I remove the following from the
|
Using April 2024 alpha:
Win 10 22H2 (Latest)
The text was updated successfully, but these errors were encountered: