Author: andrews
Date: 2006-07-23 09:59:29 -0400 (Sun, 23 Jul 2006)
New Revision: 62903
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
Log:
corectly handle the different default values of DetailsView.CellSpacing and
Table.CellSpacing
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-07-23 12:31:45 UTC (rev 62902)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-07-23 13:59:29 UTC (rev 62903)
@@ -1,5 +1,10 @@
2006-07-23 Andrew Skiba <[EMAIL PROTECTED]>
+ * DetailsView.cs: correct handling the different default values of
+ DetailsView.CellSpacing and Table.CellSpacing.
+
+2006-07-23 Andrew Skiba <[EMAIL PROTECTED]>
+
* DetailsView.cs: create a pager row when needed.
2006-07-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
2006-07-23 12:31:45 UTC (rev 62902)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
2006-07-23 13:59:29 UTC (rev 62903)
@@ -988,8 +988,10 @@
Table table = new Table ();
table.Caption = Caption;
table.CaptionAlign = CaptionAlign;
- table.CellPadding = CellPadding;
- table.CellSpacing = CellSpacing;
+ table.CellPadding = CellPadding;
+ //CellSpacing defaults to 0 and Table.CellSpacing to -1
+ if (CellSpacing != 0)
+ table.CellSpacing = CellSpacing;
table.HorizontalAlign = HorizontalAlign;
table.BackImageUrl = BackImageUrl;
return table;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches