https://bugzilla.novell.com/show_bug.cgi?id=659008

https://bugzilla.novell.com/show_bug.cgi?id=659008#c0


           Summary: TabControl.GetTabRect can return an empty Rectangle
                    (0, 0, 0, 0)
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Created an attachment (id=404458)
 --> (http://bugzilla.novell.com/attachment.cgi?id=404458)
Test case

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101211
Firefox/4.0b8pre

See test case.
Right after the call to InitializeComponent of the Form, we do:

Rectangle rec = this.tabControl1.GetTabRect(0);
MessageBox.Show(rec.ToString());

With .NET, this returns:
{X=2,Y=2,Width=58,Height=18}

With Mono, this returns:
{X=0,Y=0,Width=0,Height=0}

However, if calling the GetTabRect method later on, Mono returns something more
sensible (although a bit different from .NET). So I suspect GetTabRect returns
an empty Rectangle until the TabControl has been drawn for the first time, or
something like that.

Reproducible: Always

-- 
Configure bugmail: https://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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to