"display on horizontal scrollbar for width 100%"

This commit is contained in:
Ralf Becker 2009-07-04 14:17:58 +00:00
parent f0173f0ea3
commit 62d3afdd36

View File

@ -843,9 +843,11 @@ class etemplate extends boetemplate
html::formatOptions($grid['span'],',class').
html::formatOptions($grid['name']?self::form_name($cname,$grid['name']):'','id'));
if (!empty($overflow)) {
if (!empty($overflow))
{
if (is_numeric($height)) $height .= 'px';
if (is_numeric($width)) $width .= 'px';
if ($width == '100%') $overflow .= '; overflow-x: hidden'; // no horizontal scrollbar
$div_style=' style="'.($width?"width: $width; ":'').($height ? "height: $height; ":'')."overflow: $overflow;\"";
$html = html::div($html,$div_style);
}