[Mono-bugs] [Bug 531591] TableLayoutPanel.SetColumnSpan does not display all cells with ColumnStyle AutoSize

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Aug 22 18:54:52 EDT 2009


User timotheus.pokorra at gmail.com added comment

--- Comment #1 from Timotheus Pokorra <timotheus.pokorra at gmail.com>  2009-08-22 16:54:40 MDT ---
I have now investigated this issue further.

I had a look at

In TableLayout::CalculateColumnRowSizes, when calculating the maximum width per
column, it skips the controls that span several columns. To some degree this
makes sense, because the control width on this column is hard to calculate.

But if there is no other row with a column that belongs only into this column,
the  max_width will be 0, and the column will not be visible.

It does not make much sense to have such a scenario, with 2 columns always
being spanned (I wanted to auto generate forms, and assign a label and a
control each to one column; in some cases, eg. checkboxes, I span the 2
columns; now if in one panel, there are only checkboxes, the scenario would
But it works fine on the .net Winforms, therefore I am wondering if it would be
good if there is a solution for this on Mono as well.

I will attach a possible solution for this.
I have no idea if this is a good solution, but perhaps it gives a good start to
a nice solution!


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