diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 8ffca7b3ac..0ad8459043 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -1261,7 +1261,7 @@ class etemplate extends boetemplate $cell_options = $cell['type'] == 'int' ? 5 : 8; } // html5 input type=nummeric seems to ignore size, setting a width instead - $options .= ' style="width: '.(3+$cell_options).'ex"'; + $options .= ' style="width: '.(3+abs($cell_options)).'ex"'; if (($type == 'float' || !is_numeric($pre)) && $value && $pre) { $value = is_numeric($pre) ? self::number_format($value,$pre,$readonly) : sprintf($pre,$value);