Code

#Fixed resizing in opera
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Nov 2007 07:48:44 +0000 (07:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Nov 2007 07:48:44 +0000 (07:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7749 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ObjectListViewport.inc
test.php

index 1968cd1899b94b83365af6190cb37df6f9d2c393..a0aa85d472fe1a1515cb12ac3b03be18d4e6ec8c 100644 (file)
@@ -254,7 +254,7 @@ class ObjectListViewport {
     /* Each cell definition is seperated by | 
      *  split by and go through each definition
      */
-    $tmp = split("\|",trim($data,"|"));  
+    $tmp = split("\|",trim($data,"|")); 
     $cell_formats = array();
     foreach($tmp as $key => $data){
 
@@ -296,9 +296,8 @@ class ObjectListViewport {
         if(!empty($s_width)){
           $s_style = "width: ".$s_width.";";
         }
-        
-        $cell_formats[$key] = array("name" => $s_name, "width" => $s_width, "alignment" => $s_alignment,"style" => $s_style);
       }
+      $cell_formats[$key] = array("name" => $s_name, "width" => $s_width, "alignment" => $s_alignment,"style" => $s_style);
     }
     return($cell_formats);
   }
index 1fdc8216421d3444ee06bd8b11ea2866a70e63bc..4b30acf7c054befe34ea32692567c32b627f8679 100644 (file)
--- a/test.php
+++ b/test.php
        border-collapse:collapse;
 }
 
-.ObjectListViewport_Entry_Cover{
-
-       border: 0px;
-       margin:0px;
-       padding:0px;
-}
-
 .ObjectListViewport_Footer_Table {
     width:100%;
     border: 0px;
@@ -66,6 +59,7 @@
 }
 .ObjectListViewport_Entry_Cover{
        overflow:auto;
+       height:20px;
 }
 .ObjectListViewport_Entry_Cell {
        border-left: solid 1px;
@@ -92,7 +86,7 @@ window.onresize = updateObjectListViewportSize;
                /* Somehow IE do not need to be resized 
          *  So skip the following part if the client uses ie
          */
-               if(document.all){
+               if(document.all && !window.opera){
                        var all = getElementsByStyleClass('ObjectListViewport_Entry_Cover');
                        for (var i = 0; i < all.length; ++i){
                                document.getElementById(all[i].id).style.height= "100%";
@@ -159,35 +153,34 @@ window.onresize = updateObjectListViewportSize;
 </head>
 <body>
 <input type='text' id='debug' value="" style='width:100%;'>
-       <table style='height:90%;width:90%;background-color:#DDDDDD; border: solid 1px;'
-               cellspacing=0 cellpadding=0>
-               <tr>
-                       <td style='width:30%;height:30%;background-color:#EEEEEE;'>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                       </td>
-                       <td style='background-color:#EEEEEE;'>
-                               <?php echo passthru("./test"); ?>
-                       </td>
-               </tr>
-               <tr>
-                       <td style='height:30%;background-color:#999777;'>
-                               <?php echo passthru("./test"); ?>
-                       </td>
-                       <td style='background-color:#AAA006;'>
-                       </td>
-               </tr>
-               <tr>
-                       <td style='background-color:#999777;'>
-                       </td>
-                       <td style='background-color:#999777;'>
-                               <?php echo passthru("./test"); ?>
-                       </td>
-               </tr>
-       </table>
+
+    <table style='height:90%;width:90%;background-color:#DDDDDD; border: solid 1px;'
+        cellspacing=2 cellpadding=2>
+        <tr>
+            <td style='width:30%;height:30%;'>
+                <?php echo passthru("./test"); ?>
+            </td>
+            <td>
+                <?php echo passthru("./test"); ?>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <?php echo passthru("./test"); ?>
+            </td>
+            <td>
+                <?php echo passthru("./test"); ?>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <?php echo passthru("./test"); ?>
+            </td>
+            <td>
+                <?php echo passthru("./test"); ?>
+            </td>
+        </tr>
+    </table>
+
 </body>
 </html>