[Mono-bugs] [Bug 515045] TabControl / TabPage doesn't look right (+ VisualStyles not applied)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 25 08:32:58 EDT 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=515045#c7


--- Comment #7 from Thomas Goldstein <stifu at free.fr> 2010-04-25 12:32:55 UTC ---
At this point you might be convinced I love talking to myself. But that's
alright!

I'm thinking of splitting this bug into several bug reports, to make everything
clearer and easier to track, because this is getting confusing.

Anyway, about bug #6 I mentioned about ("TabControl.SizeMode = Fixed is
ignored")... I'm bitten hard by this bug, and so I thought I'd look into it to
help getting it fixed. And I figured it out. :)
Look at TabControl.cs, line 1264.

if (SizeMode == TabSizeMode.Fixed) {
    width = item_size.Width;
} else { (...) }

This is all fine, however, there's this at line 1281:

if (width < MinimumTabWidth)
    width = MinimumTabWidth;

And this shouldn't be appled when SizeMode == TabSizeMode.Fixed. So this part
should be moved at the bottom of the "else" above.

Can someone please do this? That'd be greatly appreciated.

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