From: janw Date: Mon, 31 Oct 2005 13:20:00 +0000 (+0000) Subject: Works better now. IE is still stuck - no scrollbars. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4eb0a20be4443722d99fbbfe02c39b72240a4699;p=gosa.git Works better now. IE is still stuck - no scrollbars. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1772 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/themes/default/style.css b/html/themes/default/style.css index 0f27c507a..8ffe63b5e 100644 --- a/html/themes/default/style.css +++ b/html/themes/default/style.css @@ -22,10 +22,17 @@ td.list0 { td.list1 { background:white; - border-right:1px solid #C0C0C0; + border-right:1px solid #C0C0C0; padding:3px; } +tbody.scrollcontent { + overflow:auto; + overflow:-moz-scrollbars-vertical; + overflow-x:hidden; + max-height:480px; +} + body { margin-left: 0px; diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 887e8419b..58591666a 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -52,10 +52,20 @@ class divlist { $s_return = ""; $s_return.= ""; + + if($this->i_entriesPerPage==0) { - $s_return.= "".$this->_generateHeader().""; + $s_return.= "".$this->_generateHeader().""; + + // Define an alternate style for IE + $s_return.= ""; - $s_return.= "".$this->_generatePage().""; + $s_return.= "".$this->_generatePage().""; + } else { + $s_return.=$this->_generateHeader(); + + $s_return.=$this->_generatePage(); + } //$s_return.= nl2br(htmlentities($this->_generatePage())); $s_return.= "
"; @@ -101,7 +111,10 @@ class divlist { $i_count--; } - $s_return .= " "; + // Only create additional column if we're using scrollbars + if($this->i_entriesPerPage==0) { + $s_return .= " "; + } $s_return .= "\n"; return $s_return; } @@ -173,8 +186,9 @@ class divlist { $s_return .= "\n"; } if($cnt == 0 ){ - $s_return.=" "; + $s_return.="\n "; } + $s_return .= "\n"; } } @@ -186,12 +200,12 @@ class divlist { $cnt=0; for($a = 0 ; $a < (count($this->a_header[0])) ; $a ++ ) { if($a ==(count($this->a_header[0])-1)){ - $s_return.="  "; + $s_return.="\n "; } else { - $s_return.="  "; + $s_return.="\n "; } } - $s_return.=""; + $s_return.="\n"; } } @@ -231,12 +245,14 @@ class divlist { $s_return .= "\n"; $s_return .= $s_value2['string']; - $s_return .= "\n"; + $s_return .= ""; } if($cnt == 0 ){ - $s_return.=" "; - } + $s_return.="\n "; + } else { + //$s_return.="\n "; + } $s_return .= "\n"; } }