Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

Commented Unassigned: Invalid table width detection when rendering [9023]

$
0
0
In HtmlRenderer.Dom.CssLayoutEngineTable.DetermineMissingColumnWidths(float availCellSpace) in the loop "spread extra width between all columns" (line 460) columns width is determinted so that sum of _columnWidths values is bigger than availCellSpace. It causes incorrect cell content wrapping.
Comments: This is my context for HtmlPanel (used as a custom control for gridview to display chat messages with html formatting) ``` AutoSize = false; AutoSizeHeightOnly = true; BaseStylesheet = "td.msg { font-family:Tahoma; font-size:8.25pt; font-weight:normal; } td.username { font-family:Tahoma; font-size:8.25pt; font-weight:bold; vertical-align:top; padding-right:3px; } td.timestamp { font-family:Tahoma; font-size:8.25pt; font-weight:normal; color:blue; vertical-align:top; }"; Text = "<table><tr><td class=\"timestamp\">[" + _message.TimeStamp.ToString("dd.MM hh:mm") + "]</td><td class=\"username\">" + _message.UserName + ":</td><td class=\"msg\">" + _message.Content + "</td></tr></table>"; ``` The problem was with pretty long _message.Content.

Viewing all articles
Browse latest Browse all 693


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>