mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-50312_master' of https://github.com/jinhofer/moodle
This commit is contained in:
commit
2c720c9772
4 changed files with 50 additions and 4 deletions
|
@ -1075,9 +1075,24 @@ FloatingHeaders.prototype = {
|
||||||
var userCells = Y.all(SELECTORS.USERCELL);
|
var userCells = Y.all(SELECTORS.USERCELL);
|
||||||
this.userColumnHeader.one('.cell').setStyle('width', userWidth);
|
this.userColumnHeader.one('.cell').setStyle('width', userWidth);
|
||||||
this.userColumn.all('.cell').each(function(cell, idx) {
|
this.userColumn.all('.cell').each(function(cell, idx) {
|
||||||
|
var height = userCells.item(idx).getComputedStyle(HEIGHT);
|
||||||
|
// Nasty hack to account for Internet Explorer
|
||||||
|
if(Y.UA.ie !== 0) {
|
||||||
|
var node = userCells.item(idx);
|
||||||
|
var allHeight = node.getDOMNode ?
|
||||||
|
node.getDOMNode().getBoundingClientRect().height :
|
||||||
|
node.get('offsetHeight');
|
||||||
|
var marginHeight = parseInt(node.getComputedStyle('marginTop'),10) +
|
||||||
|
parseInt(node.getComputedStyle('marginBottom'),10);
|
||||||
|
var paddingHeight = parseInt(node.getComputedStyle('paddingTop'),10) +
|
||||||
|
parseInt(node.getComputedStyle('paddingBottom'),10);
|
||||||
|
var borderHeight = parseInt(node.getComputedStyle('borderTopWidth'),10) +
|
||||||
|
parseInt(node.getComputedStyle('borderBottomWidth'),10);
|
||||||
|
height = allHeight - marginHeight - paddingHeight - borderHeight;
|
||||||
|
}
|
||||||
cell.setStyles({
|
cell.setStyles({
|
||||||
width: userWidth,
|
width: userWidth,
|
||||||
height: userCells.item(idx).getComputedStyle(HEIGHT)
|
height: height
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1074,9 +1074,24 @@ FloatingHeaders.prototype = {
|
||||||
var userCells = Y.all(SELECTORS.USERCELL);
|
var userCells = Y.all(SELECTORS.USERCELL);
|
||||||
this.userColumnHeader.one('.cell').setStyle('width', userWidth);
|
this.userColumnHeader.one('.cell').setStyle('width', userWidth);
|
||||||
this.userColumn.all('.cell').each(function(cell, idx) {
|
this.userColumn.all('.cell').each(function(cell, idx) {
|
||||||
|
var height = userCells.item(idx).getComputedStyle(HEIGHT);
|
||||||
|
// Nasty hack to account for Internet Explorer
|
||||||
|
if(Y.UA.ie !== 0) {
|
||||||
|
var node = userCells.item(idx);
|
||||||
|
var allHeight = node.getDOMNode ?
|
||||||
|
node.getDOMNode().getBoundingClientRect().height :
|
||||||
|
node.get('offsetHeight');
|
||||||
|
var marginHeight = parseInt(node.getComputedStyle('marginTop'),10) +
|
||||||
|
parseInt(node.getComputedStyle('marginBottom'),10);
|
||||||
|
var paddingHeight = parseInt(node.getComputedStyle('paddingTop'),10) +
|
||||||
|
parseInt(node.getComputedStyle('paddingBottom'),10);
|
||||||
|
var borderHeight = parseInt(node.getComputedStyle('borderTopWidth'),10) +
|
||||||
|
parseInt(node.getComputedStyle('borderBottomWidth'),10);
|
||||||
|
height = allHeight - marginHeight - paddingHeight - borderHeight;
|
||||||
|
}
|
||||||
cell.setStyles({
|
cell.setStyles({
|
||||||
width: userWidth,
|
width: userWidth,
|
||||||
height: userCells.item(idx).getComputedStyle(HEIGHT)
|
height: height
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
|
|
@ -932,9 +932,24 @@ FloatingHeaders.prototype = {
|
||||||
var userCells = Y.all(SELECTORS.USERCELL);
|
var userCells = Y.all(SELECTORS.USERCELL);
|
||||||
this.userColumnHeader.one('.cell').setStyle('width', userWidth);
|
this.userColumnHeader.one('.cell').setStyle('width', userWidth);
|
||||||
this.userColumn.all('.cell').each(function(cell, idx) {
|
this.userColumn.all('.cell').each(function(cell, idx) {
|
||||||
|
var height = userCells.item(idx).getComputedStyle(HEIGHT);
|
||||||
|
// Nasty hack to account for Internet Explorer
|
||||||
|
if(Y.UA.ie !== 0) {
|
||||||
|
var node = userCells.item(idx);
|
||||||
|
var allHeight = node.getDOMNode ?
|
||||||
|
node.getDOMNode().getBoundingClientRect().height :
|
||||||
|
node.get('offsetHeight');
|
||||||
|
var marginHeight = parseInt(node.getComputedStyle('marginTop'),10) +
|
||||||
|
parseInt(node.getComputedStyle('marginBottom'),10);
|
||||||
|
var paddingHeight = parseInt(node.getComputedStyle('paddingTop'),10) +
|
||||||
|
parseInt(node.getComputedStyle('paddingBottom'),10);
|
||||||
|
var borderHeight = parseInt(node.getComputedStyle('borderTopWidth'),10) +
|
||||||
|
parseInt(node.getComputedStyle('borderBottomWidth'),10);
|
||||||
|
height = allHeight - marginHeight - paddingHeight - borderHeight;
|
||||||
|
}
|
||||||
cell.setStyles({
|
cell.setStyles({
|
||||||
width: userWidth,
|
width: userWidth,
|
||||||
height: userCells.item(idx).getComputedStyle(HEIGHT)
|
height: height
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue