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;
}