Merge pull request #2197 from frederic34/patch-5

Attribut width not allowed with div or span
This commit is contained in:
Laurent Destailleur 2015-01-06 00:08:08 +01:00
commit 6916fffbe2

View File

@ -403,9 +403,9 @@ class Form
if ($direction < 0) { if ($direction < 0) {
$s.='<'.$tag.$paramfortooltipimg; $s.='<'.$tag.$paramfortooltipimg;
if ($tag == 'td') { if ($tag == 'td') {
$s .= 'valign="top" '; $s .= ' valign="top" width="14"';
} }
$s.= 'width="14">'.$img.'</'.$tag.'>'; $s.= '>'.$img.'</'.$tag.'>';
} }
// Use another method to help avoid having a space in value in order to use this value with jquery // Use another method to help avoid having a space in value in order to use this value with jquery
// TODO add this in css // TODO add this in css
@ -416,9 +416,9 @@ class Form
if ($direction > 0) { if ($direction > 0) {
$s.='<'.$tag.$paramfortooltipimg; $s.='<'.$tag.$paramfortooltipimg;
if ($tag == 'td') { if ($tag == 'td') {
$s .= 'valign="top" '; $s .= ' valign="top" width="14"';
} }
$s.= 'width="14">'.$img.'</'.$tag.'>'; $s.= '>'.$img.'</'.$tag.'>';
} }
if (empty($notabs)) $s.='</tr></table>'; if (empty($notabs)) $s.='</tr></table>';