[Mono-bugs] [Bug 599841] [PATCH] TabControl / TabPage Text and Image should be centered when SizeMode = Fixed

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 27 13:24:54 EST 2010



--- Comment #22 from Thomas Goldstein <stifu at free.fr> 2010-12-27 18:24:52 UTC ---
Any objection against committing the tab image horizontal centering part? If
not, I'll go ahead and commit it.

For the record, the only problem I noticed, which isn't a regression, is that
padding should affect the image position, but it doesn't with Mono. I'm
confused about how padding works, as with .NET, playing with the X value
affects the vertical position of the image, and vice versa, the Y one affects
the horizontal one.
For example, if you have a tab (SizeMode = Fixed) with an image, and have a 0,0
Padding, then the image is centered but slightly shifted to the left. You need
to set the Padding.Y to 3 for the image to be perfectly centered horizontally.
I don't get it.

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

More information about the mono-bugs mailing list