In this thread the comments are displaying so wide that they overwrite all the text in the rightmost pane (which includes "visit meta", "nn people chatting", etc). The bug exists in both IE and Chrome.
-
$\begingroup$ (btw, no-repro on Firefox.) $\endgroup$– kennytmCommented Nov 1, 2010 at 18:31
-
$\begingroup$ (no-repro on Chrome 8-dev/Mac, too) $\endgroup$– IsaacCommented Nov 1, 2010 at 18:33
-
$\begingroup$ I too can no longer reproduce it - even in the same browser sessions. $\endgroup$– Bill DubuqueCommented Nov 1, 2010 at 19:55
-
$\begingroup$ @Bill: Maybe because I have deleted that comment. $\endgroup$– kennytmCommented Nov 1, 2010 at 20:01
-
$\begingroup$ @Kenny: That probably explains why it's no longer reproducible. So the bug seems to be triggered only when a long unbreakable line appears in a comment, e.g. a long url? $\endgroup$– Bill DubuqueCommented Nov 1, 2010 at 20:51
-
$\begingroup$ @Jeff: "status-norepro" is incorrect. It is reproducible, but Kenny deleted the comment that triggers it. That is the source of the above "no-repro" comments. $\endgroup$– Bill DubuqueCommented Nov 2, 2010 at 5:09
-
$\begingroup$ @Jeff: no-repro on Firefox, but definitely repro on IE-8. $\endgroup$– kennytmCommented Nov 2, 2010 at 6:30
-
$\begingroup$ Was just about the report this. (Chrome 15.0.874.121 Win7) $\endgroup$– Adam LynchCommented Dec 10, 2011 at 18:14
1 Answer
This has been reported a lot of times, e.g.
- Long comments can break layout
- Bug Report: The Pollyanna Effect
- Comments not getting line broken for some strings
etc. The current resolution is [status-we-dont-know-how-to-fix]
, quoting @Jeff Atwood,
Near as I can tell, there is no way to get this to work on comments because they are variable width. That is, the actual comment size depends on whether or not the comment vote UI controls are present (fex, on your own comment, you don't have controls, if you're not logged in there are no controls, etc), and if the comment has say 100 upvotes that's wider still.
and
I'm not willing to make comments fixed size at the moment. I thought about checking server side by looping through the string and forcing spaces every (n) characters if there aren't any just to prevent griefing.
-
1$\begingroup$ correct, there is no fix in HTML as currently known. The fix is to edit or delete the comment. $\endgroup$ Commented Nov 2, 2010 at 7:03