This project has moved. For the latest updates, please go here.
1
Vote

Table column width is not correct parsed when precentage is used

description

In the file HtmlConverter.ProcessTag.cs, function ProcessTableColumn the following code is wrong:
case UnitMetric.Percent:
                    properties.TableCellWidth = new TableCellWidth() { Type = TableWidthUnitValues.Pct, Width = (unit.ValueInDxa * 50).ToString(CultureInfo.InvariantCulture) };
                    break;
his results Always in 0 width with type Pct. unit.ValueInDxa is Always 0 for UnitMetric.Percent. When changing to unit.Value the problem should be resolved. (This is correct implemented in function ProcessTable )
case UnitMetric.Percent:
                    properties.TableCellWidth = new TableCellWidth() { Type = TableWidthUnitValues.Pct, Width = (unit.Value * 50).ToString(CultureInfo.InvariantCulture) };
                    break;

comments