[Mono-dev] Patches for mono-winforms

Stifu stifu at free.fr
Sat Jul 28 09:02:14 UTC 2012

It's in
thanks again.

Steven Boswell II wrote
> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at .ximian
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

View this message in context: http://mono.1490590.n4.nabble.com/Patches-for-mono-winforms-tp4650606p4650610.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list