mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:45:56 +00:00
[WINESYNC][COMCTL32] Fix large height for ComboBox when CBS_NOINTEGRALHEIGHT is specified (#7940)
CORE-19833
wine commit id d551564f1b
by Orin Varley <ovarley@codeweavers.com>
comctl32: Make CBS_NOINTEGRALHEIGHT only set minimum combobox height.
When the combobox height is to be set by the application (as the CBS_NOINTEGRALHEIGHT style is on),
and when a large size is specified but only a small number of items in the list, the height of the
combobox should be set by the number of items rather than the size specified to avoid empty lines.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57360
This commit is contained in:
parent
946f17e93d
commit
3e342246d4
1 changed files with 4 additions and 0 deletions
|
@ -977,7 +977,11 @@ static void CBDropDown( LPHEADCOMBO lphc )
|
|||
|
||||
if (lphc->dwStyle & CBS_NOINTEGRALHEIGHT)
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
nDroppedHeight = min(nItems * nIHeight + COMBO_YBORDERSIZE(), nDroppedHeight - 1);
|
||||
#else
|
||||
nDroppedHeight -= 1;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue