[Mono-dev] Bugs in System.Web.UI.WebControls.CheckBox and CheckBoxList

Chris Toshok toshok at ximian.com
Fri Feb 17 01:14:13 EST 2006


It seems that with this change, you can remove the following identical
lines from 386 (the else branch of the "if (align == TextAlign.Right)"
in Render()), as they're just a few lines above the call to
InternalAddAttributesToRender:

	if (!Enabled)
		w.AddAttribute (HtmlTextWriterAttribute.Disabled, "disabled");

no?

Chris

On Thu, 2006-02-16 at 06:17 -0800, Vladimir Krasnov wrote:
> 
> Index: CheckBox.cs
> ===================================================================
> --- CheckBox.cs (revision 56812)
> +++ CheckBox.cs (working copy)
> @@ -470,6 +472,8 @@
>  
>                 internal virtual void InternalAddAttributesToRender
> (HtmlTextWriter w)
>                 {
> +                       if (!Enabled)
> +                               w.AddAttribute
> (HtmlTextWriterAttribute.Disabled, "disabled");
>                 }
>         }
>  } 



More information about the Mono-devel-list mailing list