Merge branch 'MDL-42974-m27' of https://github.com/sammarshallou/moodle into MOODLE_27_STABLE

This commit is contained in:
Sam Hemelryk
2014-09-29 11:21:24 +13:00
4 changed files with 38 additions and 2 deletions
@@ -176,6 +176,18 @@ Y.extend(DIALOGUE, Y.Panel, {
this.set('zIndex', zindexvalue);
if (this.get('modal')) {
ol.setStyle('zIndex', zindexvalue);
// In IE8, the z-indexes do not take effect properly unless you toggle
// the lightbox from 'fixed' to 'static' and back. This code does so
// using the minimum setTimeouts that still actually work.
if (Y.UA.ie && Y.UA.compareVersions(Y.UA.ie, 9) < 0) {
setTimeout(function() {
ol.setStyle('position', 'static');
setTimeout(function() {
ol.setStyle('position', 'fixed');
}, 0);
}, 0);
}
}
this._calculatedzindex = true;
}
File diff suppressed because one or more lines are too long
@@ -176,6 +176,18 @@ Y.extend(DIALOGUE, Y.Panel, {
this.set('zIndex', zindexvalue);
if (this.get('modal')) {
ol.setStyle('zIndex', zindexvalue);
// In IE8, the z-indexes do not take effect properly unless you toggle
// the lightbox from 'fixed' to 'static' and back. This code does so
// using the minimum setTimeouts that still actually work.
if (Y.UA.ie && Y.UA.compareVersions(Y.UA.ie, 9) < 0) {
setTimeout(function() {
ol.setStyle('position', 'static');
setTimeout(function() {
ol.setStyle('position', 'fixed');
}, 0);
}, 0);
}
}
this._calculatedzindex = true;
}
+12
View File
@@ -147,6 +147,18 @@ Y.extend(DIALOGUE, Y.Panel, {
this.set('zIndex', zindexvalue);
if (this.get('modal')) {
ol.setStyle('zIndex', zindexvalue);
// In IE8, the z-indexes do not take effect properly unless you toggle
// the lightbox from 'fixed' to 'static' and back. This code does so
// using the minimum setTimeouts that still actually work.
if (Y.UA.ie && Y.UA.compareVersions(Y.UA.ie, 9) < 0) {
setTimeout(function() {
ol.setStyle('position', 'static');
setTimeout(function() {
ol.setStyle('position', 'fixed');
}, 0);
}, 0);
}
}
this._calculatedzindex = true;
}