From 62d3afdd363194f27ee945afed49dcf74c496014 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 4 Jul 2009 14:17:58 +0000 Subject: [PATCH] "display on horizontal scrollbar for width 100%" --- etemplate/inc/class.etemplate.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index b1100ea815..fd8a660320 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -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); }