Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
acb308af
Commit
acb308af
authored
Aug 28, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If we have no dropdown height give ourselves a minimum height of 5
items or max items (whichever is less).
parent
0393d43c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
combo.c
controls/combo.c
+12
-2
No files found.
controls/combo.c
View file @
acb308af
...
...
@@ -1195,12 +1195,22 @@ static void CBDropDown( LPHEADCOMBO lphc )
if
(
nItems
>
0
)
{
int
nHeight
;
int
nIHeight
;
nHeight
=
(
int
)
SendMessageW
(
lphc
->
hWndLBox
,
LB_GETITEMHEIGHT
,
0
,
0
);
nHeight
*=
nItems
;
nIHeight
=
(
int
)
SendMessageW
(
lphc
->
hWndLBox
,
LB_GETITEMHEIGHT
,
0
,
0
);
nHeight
=
nIHeight
*
nItems
;
if
(
nHeight
<
nDroppedHeight
-
COMBO_YBORDERSIZE
())
nDroppedHeight
=
nHeight
+
COMBO_YBORDERSIZE
();
if
(
nDroppedHeight
<
nIHeight
)
{
if
(
nItems
<
5
)
nDroppedHeight
=
nHeight
;
else
nDroppedHeight
=
5
*
nIHeight
;
}
}
/*If height of dropped rectangle gets beyond a screen size it should go up, otherwise down.*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment