A wxRichTextTable with percentage width is wrongly laid out
|Reported by:||dghart||Owned by:|
wxRichTextTable can optionally be given a width, either in pixels or as a percentage of the available width. If the latter it becomes too narrow, as can be seen in the before/after screenshots and richtext.diff.
The problem is that the available-width passed to wxRichTextTable::Layout already takes the percentage reduction into account; then the percentage is applied again to the width available for the contained cells, resulting in cells that are too narrow for the table; and finally the table width is shrunk to fit the contents. The solution, in richtextbuffer.diff, is not to reduce the width available to the cells when the table has percentage width.