Code

Fixed scrolling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Nov 2005 11:35:06 +0000 (11:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Nov 2005 11:35:06 +0000 (11:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1923 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_divSelectBox.inc

index 4e4d45088b5bc1d84837e4e8db8f00741c62c0be..a46aaa719e571bc65ddd0712f0ae30ed64052337 100644 (file)
@@ -26,13 +26,13 @@ class divSelectBox {
 
   function DrawList(){
     $s_return  = "";
-    $s_return .= "<div style=\"height:2px; overflow:hidden;background:#888888;width:100%;margin-right:18px;\"></div>\n";
-    $s_return .= "<div style=\"padding-right:1px;padding-bottom:2px;;\" height='".$this->height."' width='100%'>\n";
-    $s_return .= "<div style=\"overflow: auto;width:100%;height:".$this->height."px;\">\n";
+    $s_return .= "<div style=\"height:2px; overflow:hidden;background:#888888;width:100%;margin-right:0px;\"></div>\n";
+    $s_return .= "<div style=\"padding-right:1px;padding-bottom:2px;\" height='".$this->height."' width='100%'>\n";
+    $s_return .= "<div style=\"overflow: auto;width:100%;height:".($this->height)."px;\">\n";
     $s_return .= "<table ".
                     "summary='".$this->s_summary."' ".
                     "width='100%' ".
-                    "height='100%' ".
+                    "height='".($this->height-2)."' ".
                     "cellspacing='0' ".
                     "style='overflow:scroll; ".
                     "padding-right:1px; ".
@@ -70,7 +70,6 @@ class divSelectBox {
     }
 
     $i = $this->_numEntries();
-    for($e = 0 ; $e < 10 ; $e ++)
     foreach($this->a_entries as $s_key => $s_value){
       $i--;