[Mono-bugs] [Bug 539606] New: cellborderstyle finishing too soon

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 16 10:01:41 EDT 2009


           Summary: cellborderstyle finishing too soon
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: paul at all-the-johnsons.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=318530)
 --> (http://bugzilla.novell.com/attachment.cgi?id=318530)
Source demonstrating broken tablelayout

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:
Gecko/20090911 Fedora/3.5.3-1.fc12 Firefox/3.5.3

I have created a table with 6 rows in the winforms designer. It has 1 columns -
the rest are added programatically by the runtime (can have upto 11 columns in
total - initially set at 5).

The code for adding columns looks like this

        public lessonplan(int noperiods)
            float periodSize = 100.0F / (float)noperiods;
            this.lesson.ColumnCount = noperiods + 1;
            for (int i = 0; i < noperiods; ++i)
                this.periodlabel[i] = new System.Windows.Forms.Label();
                this.periodlabel[i].Location = new System.Drawing.Point(127 +
(117 * i), 2);
                this.periodlabel[i].Text = "Lesson " + (i + 1).ToString();
                this.periodlabel[i].AutoSize = true;
                this.periodlabel[i].Font = new System.Drawing.Font("Arial",
18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
                this.periodlabel[i].Size = new System.Drawing.Size(109, 27);
                this.periodlabel[i].TabIndex = i + 6;
                this.lesson.Controls.Add(this.periodlabel[i], i + 1, 0);

where noperiods is a number between 1 and 10.

Under .NET (Windows), the cell borders carry on to the end of the table. This
is not happening under Mono, here they stop at some inderminate point (it is
hard to see exactly where as it depends on the size of noperiods)

Reproducible: Always

Steps to Reproduce:
1. Compile the attached source
2. Run and select a value for number of periods to (say) 9
3. Click on create timetable
4. Compare to Win32 box using .NET
Actual Results:  
The cell borders for the rows do not carry on to the end of the table

Expected Results:  
The cell borders carry on to the end of the table

Tested the compiled binary under WinXP (SP3, .NET 2) and Linux (Fedora rawhide,

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