Fix the display width of case logs. Make sure that the field wraps even in case of very long strings inside the field.

SVN:trunk[1202]
This commit is contained in:
Denis Flaven
2011-04-11 11:54:15 +00:00
parent 35f09c3091
commit af20723c8c
2 changed files with 10 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class ormCaseLog {
public function GetAsHTML(WebPage $oP = null, $bEditMode = false, $aTransfoHandler = null)
{
$sHtml = '';
$sHtml = '<table style="width:100%;table-layout:fixed"><tr><td>'; // Use table-layout:fixed to force the with to be independent from the actual content
$iPos = 0;
for($index=count($this->m_aIndex)-1 ; $index >= 0 ; $index--)
{
@@ -99,7 +99,9 @@ class ormCaseLog {
if (count($this->m_aIndex) == 0)
{
$sHtml .= "<div>$sTextEntry</div>\n";
$sHtml .= '<div class="caselog_entry open">';
$sHtml .= $sTextEntry;
$sHtml .= '</div>';
}
else
{
@@ -121,6 +123,7 @@ class ormCaseLog {
$sHtml .= '</div>';
}
}
$sHtml .= '</td></tr></table>';
return $sHtml;
}

View File

@@ -1025,6 +1025,11 @@ span.form_validation {
border-bottom:1px #999 solid;
margin-left:0;
margin-right:0;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+, CSS3 */
}
table.details {
border-collapse: collapse;