Completed
Last Updated: 10 Jul 2018 08:23 by ADMIN
ADMIN
Boby
Created on: 16 Mar 2018 07:28
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Table with width set to 0 is imported with 0 width from HTML
When a table in HTML document has width set to 0 (through an attribute or CSS style),  the table is imported with 0 width in the document model. This makes the content unreadable. 

Instead, such width should be treated as if width is not set at all - this way the layout will use only the widths set to the cells.

Workaround: Clear the PreferredWidth property if it is 0.
var tables = this.radRichTextBox.Document.EnumerateChildrenOfType<Table>();
foreach (var table in tables)
{
    if (table.PreferredWidth.Value == 0)
    {
        table.PreferredWidth = null;
    }
}

Fix available in LIB Version 2018.1.326.
0 comments