Recycle message cut off in Mono because the label is not resizing correctly

By all means, refactor to get rid of the TableLayoutPanel -- that's been an
unending source of bugs on Mono for WeSay.
--
Steve McConnel

On Tue, Oct 28, 2014 at 3:51 AM, Eberhard Beilharz <notifications@github.com
> wrote:

> In PalasoUIWindowsForms/Extensions/LabelExtensions.cs:
>
> > @@ -0,0 +1,69 @@
> > +﻿using System;
> > +using System.Text;
> > +using System.Windows.Forms;
> > +using Palaso.PlatformUtilities;
> > +
> > +namespace Palaso.UI.WindowsForms.Extensions
> > +{
> > +	public static class LabelExtensions
> > +	{
> > +		/// ------------------------------------------------------------------------------------
> > +		/// <summary>
> > +		/// Used to size a label in mono that is inside a layout control because the text
> > +		/// will not wrap, even if AutoSize is TRUE.
>
> I wonder if it would be better to refactor this dialog instead of adding
> mono specific code.
>
> IMO this dialog has two surprising details: 1) using a TableLayoutPanel,
> 2) using AutoSize for the label (An AutoSize label on Windows doesn't wrap
> except when it's in a TableLayoutPanel).
>
> So I think I'd prefer to have the dialog refactored, either by removing
> the TableLayoutPanel (which would also solve the problem of the Delete
> button being to far left), or by setting the label to DockStyle.Fill
> instead of AutoSize.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/sillsdev/libpalaso/pull/118/files#r19458254>.
>