From: hickert Date: Thu, 8 Nov 2007 07:48:44 +0000 (+0000) Subject: #Fixed resizing in opera X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=51d31269908b56536fcd5b3839c3c494f3db5ed1;p=gosa.git #Fixed resizing in opera git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7749 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ObjectListViewport.inc b/include/class_ObjectListViewport.inc index 1968cd189..a0aa85d47 100644 --- a/include/class_ObjectListViewport.inc +++ b/include/class_ObjectListViewport.inc @@ -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); } diff --git a/test.php b/test.php index 1fdc82164..4b30acf7c 100644 --- a/test.php +++ b/test.php @@ -21,13 +21,6 @@ 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; - - - - - - - - - - - - - -
- hallo
- hallo
- hallo
- hallo
- hallo
- hallo
-
- -
- - -
- - -
+ + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+