mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
grader report MDL-21088 Fixed assorted vertical alignment issues
This commit is contained in:
parent
a83507f284
commit
04e46bff1c
2 changed files with 5 additions and 16 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue