MDL-34300 JavaScript: Stop YUI from forcing z-index on moodle-core-notification

This commit is contained in:
Andrew Robert Nicols 2013-02-15 22:45:49 +00:00
parent cce0d9a100
commit 694c4c87ac
2 changed files with 5 additions and 1 deletions

View file

@ -77,6 +77,10 @@ Y.extend(DIALOGUE, Y.Panel, {
this.after('visibleChange', this.visibilityChanged, this); this.after('visibleChange', this.visibilityChanged, this);
this.render(); this.render();
this.show(); this.show();
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
// and allow setting of z-index in theme.
this.get('boundingBox').setStyle('zIndex', null);
}, },
visibilityChanged : function(e) { visibilityChanged : function(e) {
var titlebar; var titlebar;

View file

@ -864,7 +864,7 @@ sup {vertical-align: super;}
background: none; background: none;
border: none; border: none;
/* Override the z-index set incorrectly by the YUI dialogue */ /* Override the z-index set incorrectly by the YUI dialogue */
z-index: 600!important; z-index: 600;
} }