# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/grade/report/grader/grader.js
--- moodle/grade/report/grader/grader.js Base (1.3)
+++ moodle/grade/report/grader/grader.js Locally Modified (Based On 1.3)
@@ -6,11 +6,11 @@
     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].firstChild);
+        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))
+            if(!isNaN(height))
             {
                 YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
             }
