Browse Source

2002-11-12 Gonzalo Paniagua Javier <[email protected]>

	* TableItemStyle.cs: TypeDescriptor.GetConverter seems to fail.
	Commented out some code until it works.

svn path=/trunk/mcs/; revision=8933
Gonzalo Paniagua Javier 23 years ago
parent
commit
a921870589

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2002-11-12  Gonzalo Paniagua Javier <[email protected]>
+
+	* TableItemStyle.cs: TypeDescriptor.GetConverter seems to fail.
+	Commented out some code until it works.
 
 2002-10-29      Gaurav Vaish <[email protected]>
 

+ 6 - 2
mcs/class/System.Web/System.Web.UI.WebControls/TableItemStyle.cs

@@ -161,11 +161,15 @@ namespace System.Web.UI.WebControls
 			}
 			if(HorizontalAlign != HorizontalAlign.NotSet)
 			{
-				writer.AddAttribute(HtmlTextWriterAttribute.Align, TypeDescriptor.GetConverter(typeof(HorizontalAlign)).ConvertToString(HorizontalAlign));
+				// Temporarily commented out. I'm having problems in cygwin.
+				//writer.AddAttribute(HtmlTextWriterAttribute.Align, TypeDescriptor.GetConverter(typeof(HorizontalAlign)).ConvertToString(HorizontalAlign));
+				writer.AddAttribute(HtmlTextWriterAttribute.Align, HorizontalAlign.ToString ());
 			}
 			if(VerticalAlign != VerticalAlign.NotSet)
 			{
-				writer.AddAttribute(HtmlTextWriterAttribute.Valign, TypeDescriptor.GetConverter(typeof(VerticalAlign)).ConvertToString(VerticalAlign));
+				// Temporarily commented out. I'm having problems in cygwin.
+				//writer.AddAttribute(HtmlTextWriterAttribute.Valign, TypeDescriptor.GetConverter(typeof(VerticalAlign)).ConvertToString(VerticalAlign));
+				writer.AddAttribute(HtmlTextWriterAttribute.Valign, VerticalAlign.ToString ());
 			}
 		}
 	}