Long continuous character string breaks

11 years 4 months ago - 8 years 1 month ago #1 by geoffc
In the admin location list view when a very long character string is encountered (such as the referer field) it is noted that occasionally this causes distortion of the display.
This is a minor annoyance but is easily resolved by a minor tweak to one line of code.

In the file: administrator/components/com_ipmapping/views/locations/tmpl/default.php change line 176:
<div style="width: 200px; word-wrap: break-word;">
   <?php echo $item->referer; ?>
</div>

Whilst this work fine in some situations in others it failed since it seems to be very dependent upon the way in which the different browsers handle the styles. We have since had to modify our code to surround the cell with a DIV specifying the style and also a width of 200px as well, which is fine for a fixed layout.

For those interested there is a useful link stackoverflow.com/questions/1258416/word-wrap-in-a-html-table .

Regards
Geoff

Please Log in or Create an account to join the conversation.

Time to create page: 0.137 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries