Permalink
Browse files

MDL-38067 JavaScript: Ensure the filemanager does not show through th…

…e tooltip
  • Loading branch information...
1 parent 03bd9e7 commit 1015b24b422fbb297167dab162c34e8b1adf9040 @andrewnicols andrewnicols committed Feb 15, 2013
Showing with 8 additions and 3 deletions.
  1. +5 −2 lib/yui/tooltip/tooltip.js
  2. +3 −1 theme/base/style/core.css
@@ -251,8 +251,7 @@ YUI.add('moodle-core-tooltip', function(Y) {
this.setAttrs({
headerContent: this.get('initialheadertext'),
bodyContent: this.get('initialbodytext'),
- footerContent: this.get('initialfootertext'),
- zIndex: 150
+ footerContent: this.get('initialfootertext')
});
// Hide and then render the dialogue.
@@ -262,6 +261,10 @@ YUI.add('moodle-core-tooltip', function(Y) {
// Hook into a few useful areas.
this.bb = this.get('boundingBox');
+ // Add an additional class to the boundingbox to allow tooltip-specific style to be
+ // set.
+ this.bb.addClass('moodle-dialogue-tooltip');
+
// Change the alignment if this is an RTL language.
if (right_to_left()) {
this.alignpoints = [
@@ -1020,7 +1020,9 @@ sup {vertical-align: super;}
.moodle-dialogue .tooltiptext {
max-height: 300px;
}
-
+.moodle-dialogue-base .moodle-dialogue.moodle-dialogue-tooltip {
+ z-index: 3001;
+}
/* Question Bank - Question Chooser "Close" button */
#page-question-edit.dir-rtl a.container-close {right:auto;left:6px;}

0 comments on commit 1015b24

Please sign in to comment.