[Mono-dev] Patches for mono-winforms

Steven Boswell II ulatekh at yahoo.com
Sat Jul 28 02:32:23 UTC 2012

Enclosed is the third patch for TableLayoutPanel.  Our application has a table-layout with column-spanning controls, and no control started in one particular column.  Mono set that column width to zero; .NET didn't.

I solved it by generating row/column sizes in N passes, where N is the largest row/column span of any control.  Each pass only increases the width/height of the rightmost/bottommost column/row.

This gets Mono's behavior VERY close to .NET -- the unit test allows for 3 pixels of difference.  I don't know what the source of that is, but it's a heck of a lot better than what the previous code did.

I had to include the substance of patch #2 in this one, or else three other existing unit-tests failed.  I guess my two bugs fixes couldn't be separated after all :-)

As usual, apply the unit-test patch, watch it fail, apply the patch, watch it succeed, and use the project to verify behavior under .NET and MS Windows.

Steven Boswell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120727/9c2f1e10/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TableLayoutPanelTest3.zip
Type: application/zip
Size: 7497 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120727/9c2f1e10/attachment.zip>

More information about the Mono-devel-list mailing list