DataLoader fix for tables

This commit is contained in:
2011-06-29 17:10:22 +00:00
parent 37d067a74e
commit 2ac032a599

View File

@@ -496,14 +496,16 @@ namespace Volian.Controls.Library
if (Col >= cr.c1 && Col <= cr.c2) if (Col >= cr.c1 && Col <= cr.c2)
{ {
int cellWidth = GetCellWidth(r, Col); int cellWidth = GetCellWidth(r, Col);
srtb.Width = cellWidth; //srtb.Width = cellWidth;
srtb.AdjustWidthForContent();
//Application.DoEvents(); //Application.DoEvents();
//int mergeCellHeightNLines = cellHeight / (Rows.DefaultSize - 3); //int mergeCellHeightNLines = cellHeight / (Rows.DefaultSize - 3);
//int dataHeight = (cr.UserData == null) ? cellHeight : (int)cr.UserData; //int dataHeight = (cr.UserData == null) ? cellHeight : (int)cr.UserData;
//int ud = dataHeight / (Rows.DefaultSize - 3); //int ud = dataHeight / (Rows.DefaultSize - 3);
//if (cellHeight < dataHeight) //if (cellHeight < dataHeight)
// Console.WriteLine("r {0}, c {1}, cell{2}, data{3}", Row, c, cellHeight, dataHeight); // Console.WriteLine("r {0}, c {1}, cell{2}, data{3}", Row, c, cellHeight, dataHeight);
blankColSpace = Math.Min(blankColSpace, Math.Max(0, cellWidth - srtb.MaxTextWidth)); //blankColSpace = Math.Min(blankColSpace, Math.Max(0, cellWidth - srtb.MaxTextWidth));
blankColSpace = Math.Min(blankColSpace, Math.Max(0, cellWidth - srtb.Width));
} }
} }
//Console.WriteLine("BlankRowSpace {0}", blankRowSpace); //Console.WriteLine("BlankRowSpace {0}", blankRowSpace);