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
67eb9744
Commit
67eb9744
authored
Jan 05, 2013
by
Daniel Jelinski
Committed by
Alexandre Julliard
Jan 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Fix calculating item height.
parent
ead7c50b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
listview.c
dlls/comctl32/listview.c
+2
-5
listview.c
dlls/comctl32/tests/listview.c
+0
-2
No files found.
dlls/comctl32/listview.c
View file @
67eb9744
...
...
@@ -2954,15 +2954,12 @@ static INT LISTVIEW_CalculateItemHeight(const LISTVIEW_INFO *infoPtr)
nItemHeight
=
infoPtr
->
iconSpacing
.
cy
;
else
{
nItemHeight
=
infoPtr
->
ntmHeight
;
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
&&
infoPtr
->
dwLvExStyle
&
LVS_EX_GRIDLINES
)
nItemHeight
++
;
nItemHeight
=
infoPtr
->
ntmHeight
;
if
(
infoPtr
->
himlState
)
nItemHeight
=
max
(
nItemHeight
,
infoPtr
->
iconStateSize
.
cy
);
if
(
infoPtr
->
himlSmall
)
nItemHeight
=
max
(
nItemHeight
,
infoPtr
->
iconSize
.
cy
);
if
(
infoPtr
->
himlState
||
infoPtr
->
himlSmall
)
nItemHeight
+=
HEIGHT_PADDING
;
nItemHeight
+=
HEIGHT_PADDING
;
if
(
infoPtr
->
nMeasureItemHeight
>
0
)
nItemHeight
=
infoPtr
->
nMeasureItemHeight
;
}
...
...
dlls/comctl32/tests/listview.c
View file @
67eb9744
...
...
@@ -2432,7 +2432,6 @@ static void test_subitem_rect(void)
expect
(
100
,
rect
.
left
);
expect
(
250
,
rect
.
right
);
todo_wine
expect
(
3
,
rect
.
top
);
rect
.
left
=
LVIR_BOUNDS
;
...
...
@@ -2443,7 +2442,6 @@ todo_wine
expect
(
250
,
rect
.
left
);
expect
(
450
,
rect
.
right
);
todo_wine
expect
(
3
,
rect
.
top
);
/* item LVS_REPORT padding isn't applied to subitems */
...
...
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