Code

[COSMETIC] Just centering.
[gosa.git] / include / class_divSelectBox.inc
index a853d16b2d29188889323ed6a1913e9de84610f1..1ee778a6f6a69c43492cc27c76e90f9992551c18 100644 (file)
@@ -7,7 +7,6 @@ class divSelectBox {
        var $cols;
 
        // Members for page managment
-  var $width= 300;
   var $height=200;
 
        // Added php 4 constructor
@@ -17,10 +16,6 @@ class divSelectBox {
                $this->cols                     = 0;
        }
 
-  function setWidth($w){
-    $this->width=$w;
-  }
-
   function setHeight($h){
     $this->height=$h;
   }
@@ -31,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='100%' width='100%'>\n";
-    $s_return .= "<div style=\"overflow: auto;height:100%;width:100%;\">\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; ".
@@ -87,7 +82,7 @@ class divSelectBox {
       $s_return .= "\n<tr>";
 
       $cnt = 0;                                        
-
+    
       foreach($s_value as $s_key2 => $s_value2 ){                              
         $this->cols = count($s_value) ;                                                
         $cnt++;                                        
@@ -112,9 +107,9 @@ class divSelectBox {
     }
     for($i = 0 ; $i < ($this->cols) ; $i ++){
       if($i >= ($this->cols-1)){
-        $s_return .= "<td class='list1' height='100%' style='border:0px;'></td>";
+        $s_return .= "<td class='list1' style='height:100%;border:0px;'></td>";
       }else{
-        $s_return .= "<td class='list1' height='100%'></td>";
+        $s_return .= "<td class='list1' style='height:100%;' height='100%'></td>";
       }
       
     }