[Mono-bugs] [Bug 599950] TabControl / TabPage: default ItemSize is different from .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 27 08:28:44 EDT 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=599950#c2


--- Comment #2 from Thomas Goldstein <stifu at free.fr> 2010-04-27 12:28:44 UTC ---
Hmm... I'm a tad confused what is and isn't a default value.

I found out that depending on the TabControl property settings (ImageList, tab
Texts, SizeMode), the "default" ItemSize varies. For example, the ItemSize
height is 18 before I set the ImageList of the TabControl.
I used to refer as non-bold values (in the WinForms designer) as being default
values, but it seems like it's more complicated than that.

Still, a few things that make sense to me:
The minimum tab width is 42, which is properly defined in Mono already
(minimumTabWidth = 42). And so that's where the 42 of the defaultItemSize comes
from.
And unless I'm mistaken, the default width for SizeMode = Fixed is definitely
96 in .NET, as in the patch above. So hopefully the patch is good to go,
regardless of what the height should really be.

PS: from what I've seen, given the same tab height, Mono makes tabs thinner
than .NET. Not a big deal, but this added to my confusion.

-- 
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