[Mono-bugs] [Bug 599841] New: TabControl / TabPage Text should be centered
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Apr 26 17:19:35 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=599841
http://bugzilla.novell.com/show_bug.cgi?id=599841#c0
Summary: TabControl / TabPage Text should be centered
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: stifu at free.fr
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
The text of tabs is not centered.
If you need a test case, see bug 515045.
I think the problem comes from the
System.Windows.Forms.Theming.Default.TabControlPainter class.
At line 191, there is:
defaultFormatting.Alignment = StringAlignment.Near;
Changing it to:
defaultFormatting.Alignment = StringAlignment.Center;
Fixes the problem for me.
However, note that this does not center images, and they should be centered
too. I couldn't figure out how to fix that one.
Reproducible: Always
--
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