[Mono-bugs] [Bug 616432] images in a ListView Header align top-left not center-left like .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 22 18:31:09 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=616432

http://bugzilla.novell.com/show_bug.cgi?id=616432#c1


Thomas Goldstein <stifu at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stifu at free.fr

--- Comment #1 from Thomas Goldstein <stifu at free.fr> 2010-06-22 22:31:09 UTC ---
I just had a quick look at this. The problem lies in ThemeWin32Classic.cs, line
2795:

control.SmallImageList.Draw (dc, new Point (x_origin, rect.Y), image_index);

I think the fix would be:

Defining image_height right after image_width (line 2777):
int image_height = control.SmallImageList.ImageSize.Height;

Then replacing the other line with:
control.SmallImageList.Draw (dc, new Point (x_origin, rect.Y + (rect.Height -
image_height) / 2), image_index);

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list