From 9da89960a943ab5b87a528dd4b4143120d090543 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 29 Sep 2002 16:35:54 +0000 Subject: [PATCH] added overflow handling via
to etemplate, but it is very buggy and inconsistent implemented in the several browsers so i cant recomand using it --- etemplate/inc/class.uietemplate.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index bbef6098e1..0b2d65cf6b 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -109,6 +109,11 @@ array('etemplate_exec_id' => $id,'app' => $GLOBALS['phpgw_info']['flags']['currentapp']), '/etemplate/process_exec.php','','eTemplate',$GLOBALS['phpgw_info']['etemplate']['form_options']); + list($width,$height,,,,,$overflow) = explode(',',$this->size); + if ($overflow) + { + $html = $this->html->div($html,'STYLE="'.($width?"width: $width; ":'').($height?"height: $height; ":'')."overflow: $overflow;\""); + } $id = $this->save_appsession($this->as_array(1) + array( 'readonlys' => $readonlys, 'content' => $content, @@ -303,11 +308,12 @@ } $html = $this->html->table($rows,$this->html->formatOptions($this->size,'WIDTH,HEIGHT,BORDER,CLASS,CELLSPACING,CELLPADDING')); + /* does NOT work with mozilla: shows nothing if a div is inside a form list($width,$height,,,,,$overflow) = explode(',',$this->size); if (!empty($overflow)) { $div_style=' STYLE="'.($width?"width: $width; ":'').($height ? "height: $height; ":'')."overflow: $overflow\""; $html = $this->html->div($html,$div_style); - } + }*/ return "\n\n\n$style\n".$html."\n\n"; }