+2003-11-03 Jackson Harper <jackson@ximian.com>
+
+ * RepeatInfo.cs: When doing horizontal rendering use the repeat
+ columns as the number of columns in a row. This fixes bug #49016.
+
2003-11-03 Jackson Harper <jackson@ximian.com>
* PagedDataSource.cs (PageCount): Return page count of 1 if there
{\r
/* Based on DoVerticalRendering */\r
int total = user.RepeatedItemCount;\r
- int colsCount = repeatColumns;\r
+ int colsCount = 0;\r
int rowsCount = 0;\r
-\r
- if (colsCount == 0)\r
- colsCount = total;\r
WebControl ctrl = null;\r
bool isTable = true;\r
bool hasSeps = user.HasSeparators;\r
if (isTable)\r
writer.RenderEndTag ();\r
}\r
- rowsCount++;\r
- if (rowsCount == total || index == (total - 1)) {\r
+\r
+ colsCount++;\r
+ if (colsCount == repeatColumns) {\r
+ if (isTable) {\r
+ writer.RenderEndTag ();\r
+ writer.RenderBeginTag (HtmlTextWriterTag.Tr);\r
+ }\r
+ else if (rowsCount < total)\r
+ writer.WriteFullBeginTag ("br");\r
+ colsCount = 0;\r
+ }\r
+\r
+ if (index == (total - 1)) {\r
if (isTable)\r
writer.RenderEndTag ();\r
else if (rowsCount < total)\r
writer.WriteFullBeginTag ("br");\r
- rowsCount = 0;\r
}\r
}\r
\r