[Mono-bugs] [Bug 531591] TableLayoutPanel.SetColumnSpan does not display all cells with ColumnStyle AutoSize
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Aug 24 03:11:46 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=531591
User timotheus.pokorra at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=531591#c3
--- Comment #3 from Timotheus Pokorra <timotheus.pokorra at gmail.com> 2009-08-24 01:11:45 MDT ---
I found several problems in my own patch.
#1 the same problem is for RowSpan. That is not considered in my patch.
#2 the line in my patch:
max_width = Math.Max (max_width, ctrl_width - avail_width);
should be
max_width = max_width + ctrl_width - avail_width;
#3 the problem does not only exist with empty columns as described above, but
also exists if you have this situation:
|very long control spanning 2 columns|
|smallercontrol|anothersmallctrl|
In the current implementation of Mono 2.4, the layout would look like this:
|very long control spanning 2 co|
|smallercontrol|anothersmallctrl|
#4 even when I have used my fix from #2 in the patch, this situation still
looks strange:
|very long control spanning 2 columns|anotherctrl|
|smallercontrol|anothersmallctrl||
will now look like this with my patch:
|very long control spanning 2 columns|anotherctrl|
|smallercontrol |anothersmallctrl| |
where as in MS.net it looks like this:
|very long control spanning 2 columns|anotherctrl|
|smallercontrol|anothersmallctrl | |
I hope this analysis helps to make the TableLayoutPanel even better, and
someone clever finds a good algorithm to solve it!
Thanks,
Timo
--
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