heather9911 / flies

Automatically exported from code.google.com/p/flies
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Long "words" don't wrap in the translation table #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Find an English string which contains a long "word" eg 
<property>org.jboss.esb.server.clustered</property>
2. Fill the target area with plenty of text.
3. Shrink the browser until the "word" no longer fits in the allotted width.

What is the expected output? What do you see instead?
The text should wrap to fit in the table cell.  Instead, it continues into 
the next cell.  This makes selecting the source text very difficult.

Original issue reported on code.google.com by sean.flanigan@gmail.com on 8 Apr 2010 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago
Apparently this is a known issue with current browsers, with no perfect 
solution yet.

http://stackoverflow.com/questions/363425/how-to-wrap-long-lines-without-spaces-
in-
html

All the solutions that look good (eg Hyphenator) probably use JavaScript to 
modify 
the text, usually inserting invisible word breaks.  Any solution like this will 
affect copy-and-paste adversely.

Setting an absolute width with overflow:auto might be the best option.  This 
will 
lead to horizontal scrolling in some cases, but it's probably better than 
modifying 
the text.  But we would need a variety of callbacks to update the absolute 
width when 
required, and the calculation might not be trivial...

#post{
    width: 400px;
    overflow: auto;
}

Original comment by sean.flanigan@gmail.com on 8 Apr 2010 at 5:39

GoogleCodeExporter commented 9 years ago

Original comment by asgeirf on 14 Jul 2010 at 5:49