]> git.mjollnir.org Git - moodle.git/commitdiff
grader report MDL-21088 Fixed assorted vertical alignment issues
authorAndrew Davis <andrew@affinitysoftware.net>
Fri, 8 Jan 2010 08:16:23 +0000 (08:16 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Fri, 8 Jan 2010 08:16:23 +0000 (08:16 +0000)
grade/report/grader/grader.js
grade/report/grader/styles.php

index a45c23b29a78ed1a24d6739a9ef5c5d23f9201d4..38c61c55496d14cefbfaee1faa1e67347db155e4 100644 (file)
@@ -1,22 +1,6 @@
 YAHOO.namespace("graderreport");
 
 YAHOO.graderreport.init = function() {
-    // Adjust height of header c0
-    //"heading_name_row" only exists if static students column is turned on
-    var rows = YAHOO.util.Dom.getElementsByClassName('heading_name_row');
-    if(rows && rows.length>0)
-    {
-        var header_cell_region = YAHOO.util.Dom.getRegion(rows[rows.length-1]);
-        if(header_cell_region)
-        {
-            var height = header_cell_region.bottom - header_cell_region.top;
-            if(!isNaN(height))
-            {
-                YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
-            }
-        }
-    }
-
     // attach event listener to the table for mouseover and mouseout
     var table = document.getElementById('user-grades');
     YAHOO.util.Event.on(table, 'mouseover', YAHOO.graderreport.mouseoverHandler);
index 22771de344ca69d84515f455e5e0a791a209e63f..74096c0818ea8805ac5a0587eb48245d130e07e0 100644 (file)
@@ -449,6 +449,11 @@ white-space:nowrap;
 width:2000px;
 }
 
+/*MDL-21088 - IE 7 ignores nowraps on tds or ths so we put a span within it with a nowrap on it*/
+heading_name_row th span {
+    white-space:nowrap;
+}
+
 .grade_icons img.ajax {
 float:right;
 }