mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 23:22:48 +08: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:
committed by
GitHub
parent
946f17e93d
commit
3e342246d4
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user