[Mono-dev] Bugs in System.Web.UI.WebControls.CheckBox and CheckBoxList
Vladimir Krasnov
vladimirk at mainsoft.com
Mon Feb 20 10:40:07 EST 2006
Yes, you right.
-----Original Message-----
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