[Mono-bugs] [Bug 412163] New: TableLayoutPanel: GrowStyle=AppendColumns/ FixedSize should only apply when RowCount is (explicitly) set

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 07:05:07 EDT 2008


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


           Summary: TableLayoutPanel: GrowStyle=AppendColumns/FixedSize
                    should only apply when RowCount is (explicitly) set
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


In MSFT when RowCount is unset (set to zero) adding new controls just adds new
rows; the GrowStyle property AppendColumns and FixedSize values are only
respected when RowCount has been set and its limit has been reached.

>From MSDN: "Setting either the RowCount or ColumnCount property to a value of 0
specifies that the TableLayoutPanel will be unbound in the corresponding
direction."

Repros

1a) Show it's ignored when RowCount is unset.
1. Add three new buttons.
Appear in first column in three new rows.
2. Set GrowStyle=AppendColumns.
3. Do Add.
Just appears in a new row.
Mono adds a new column currently!

1b) Repeat but setting GrowStyle at start.
Same behaviour.

1c) Repeat first case, but setting GrowStyle to FixedSize
Expect to see no exception at step 3.
Mono throws the exception currently!

2) Show it has an effect when RowCount *is* set.
1. Set RowCount=3, and GrowStyle=AppendColumns.
2. Add three new controls.
Appear in three rows in one column.
3. Do another Add.
See another column appear, and the items arranged over both.



BTW I haven't investigated nor worked out what happens when Column-/RowStyles
collections are non-empty in such cases, and when Column-/RowCount are also
set...


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


More information about the mono-bugs mailing list