Code

Working scroll
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Nov 2007 07:43:26 +0000 (07:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Nov 2007 07:43:26 +0000 (07:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7741 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ObjectListViewport.inc
test.php

index 7d51f7b8b5f74390aa364b526a8fd5c95bae221b..959ae306775a8f651b15b2394f9a5690e15a9272 100644 (file)
@@ -199,14 +199,14 @@ class ObjectListViewport {
 
     /* Apply current filter */
     $objects= new ObjectListFilterIterator($this->objects->getIterator());
-    
-    $buffer.="<table><tr><td>
-              <table class='ObjectListViewport_Entry_Table'>\n"; 
+   
+    $buffer.="<div style='overflow:auto' id='ObjectListViewport_Entry_Cover'>"; 
+    $buffer.="<table class='ObjectListViewport_Entry_Table'>\n"; 
     foreach ($objects as $value){
-      $buffer.= "<br>";//$this->renderEntry($value);
+      $buffer.= $this->renderEntry($value);
     }
-    $buffer.="</table>
-              </td></tr></table>\n"; 
+    $buffer.="</table>\n"; 
+    $buffer.="</div>"; 
 
     /* Generate footer */
     $buffer.= $this->renderFooter();
index c3ff99321e0e080e269ca75cffaaa01b2c7cee60..1b156e4b7cae469e59da5ed67881530e478c9b08 100644 (file)
--- a/test.php
+++ b/test.php
@@ -7,7 +7,6 @@
 .ObjectListViewport_Headline_Table {
        background-color: #FF0000;
        width:100%;
-       height:20px;
        border-collapse:collapse;
 }
 .ObjectListViewport_Headline_Cell {
@@ -23,7 +22,6 @@
 }
 .ObjectListViewport_Footer_Table {
        background-color: #0000FF;
-       height:20px;
        width:100%;
        border-collapse:collapse;
 }
 </style>
 <script type="text/javascript">
        function setHeight() {
-       //      document.getElementById("tolletable").style.height=document.defaultView.getComputedStyle(document.getElementById("tolletable"),"").getPropertyValue("height"))+"px";
-               alert(document.getElementById("tolletable").style.height());
+               dbg = document.getElementById('debug');
+               OVP = document.getElementById('ObjectListViewport');
+               style = getComputedStyle(OVP,"");
+               dbg.value = style.height;
+               document.getElementById('ObjectListViewport_Entry_Cover').style.height= '200px' ;
        }
 </script>
 </head>
-<body>
-
-<table onmouseover="setHeight();" id="tolletable" style='height:50%;background-color: #00FF00;'><tr><td></td></tr></table>
-
-<table style='height:30px; width:50%; background-color:#FF0000;'>
-<tr>
-<td>
+<body onmouseover="setHeight();" >
+<input type='text' id='debug' value="">
+<div id='ObjectListViewport' style='height:20%;'>
 <?php
 echo passthru("./test");
 ?>
-</td>
-</tr>
-</table>
 </div>
 </body>
 </html>