Menu

#16 [tableModel].RowHeight is ignored

open
nobody
None
5
2009-02-16
2009-02-16
Anonymous
No

In case when xptable.EnableWordWrap i set to true and minimal one TextColumn row cell is set [cell].WordWrap = true then
tablemodel.RowHeight is ignored.

my suggested solution:
in TextCellRenderer.cs file is method
public override int GetCellHeight(Graphics graphics, Cell cell)
{ ... }
replace line
return (int)Math.Ceiling(size.Height);
with this
if(cell.Row.TableModel.RowHeight > (int)Math.Ceiling(size.Height))
return cell.Row.TableModel.RowHeight;
else
return (int)Math.Ceiling(size.Height);

Discussion