[Mono-bugs] [Bug 599841] TabControl / TabPage Text and Image should be centered when SizeMode = Fixed
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Apr 27 07:38:44 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=599841
http://bugzilla.novell.com/show_bug.cgi?id=599841#c5
--- Comment #5 from Thomas Goldstein <stifu at free.fr> 2010-04-27 11:38:44 UTC ---
Created an attachment (id=357083)
--> (http://bugzilla.novell.com/attachment.cgi?id=357083)
Patch
I have an experimental patch to propose. It fixes all the bugs shown in the
test case.
Also, this patch fixes something else that I hadn't noticed at first: when
selecting a tab, the image in the tab shifts to the left by 2px, while it
should move *up* by 2px, just like the text does.
However, the way I handled the image positioning for the selected tab (if
(is_selected) conditions) is hacky, and doesn't handle horizontal repositioning
the same depending on the TabSizeMode, which is wrong. But I don't know how to
do it better.
Please have a look at this patch, and let me know if I can help.
--
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