grader report MDL-21088 Fixed assorted vertical alignment issues

This commit is contained in:
Andrew Davis 2010-01-08 08:16:23 +00:00
parent a83507f284
commit 04e46bff1c
2 changed files with 5 additions and 16 deletions

View file

@ -1,22 +1,6 @@
YAHOO.namespace("graderreport"); YAHOO.namespace("graderreport");
YAHOO.graderreport.init = function() { 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 // attach event listener to the table for mouseover and mouseout
var table = document.getElementById('user-grades'); var table = document.getElementById('user-grades');
YAHOO.util.Event.on(table, 'mouseover', YAHOO.graderreport.mouseoverHandler); YAHOO.util.Event.on(table, 'mouseover', YAHOO.graderreport.mouseoverHandler);

View file

@ -449,6 +449,11 @@ white-space:nowrap;
width:2000px; 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 { .grade_icons img.ajax {
float:right; float:right;
} }