diff options
Diffstat (limited to 'Xwt.XamMac/Xwt.Mac/ListViewBackend.cs')
-rw-r--r-- | Xwt.XamMac/Xwt.Mac/ListViewBackend.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/ListViewBackend.cs b/Xwt.XamMac/Xwt.Mac/ListViewBackend.cs index 64bb5ddd..d4da4a8e 100644 --- a/Xwt.XamMac/Xwt.Mac/ListViewBackend.cs +++ b/Xwt.XamMac/Xwt.Mac/ListViewBackend.cs @@ -191,12 +191,12 @@ namespace Xwt.Mac for (int i = 0; i < Columns.Count; i++) { CompositeCell cell = tryReuse ? Table.GetView (i, row, false) as CompositeCell : null; - if (cell == null) + if (cell == null) { cell = (Columns [i] as TableColumn)?.DataView as CompositeCell; - - if (cell != null) { cell.ObjectValue = NSNumber.FromNInt (row); height = (nfloat)Math.Max (height, cell.FittingSize.Height); + } else { + height = (nfloat)Math.Max (height, cell.GetRequiredHeightForWidth (cell.Frame.Width)); } } updatingRowHeight = false; |