[Mono-bugs] [Bug 599841] TabControl / TabPage Text should be centered
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Apr 26 17:47:31 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=599841
http://bugzilla.novell.com/show_bug.cgi?id=599841#c1
--- Comment #1 from Thomas Goldstein <stifu at free.fr> 2010-04-26 21:47:30 UTC ---
I found out how to fix the image centering as well.
At line 445 of TabControlPainter, there is:
int image_y = interior.Y + (interior.Height - tab.ImageList.ImageSize.Height) /
2;
tab.ImageList.Draw (dc, new Point (interior.X, image_y), page.ImageIndex);
Replace these 2 lines with:
int image_x = bounds.Left + (res - tab.ImageList.ImageSize.Width) / 2;
int image_y = interior.Y + (interior.Height - tab.ImageList.ImageSize.Height) /
2;
tab.ImageList.Draw (dc, new Point (image_x, image_y), page.ImageIndex);
--
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