Permalink
Browse files

Merge branch 'MDL-38067-m' of git://github.com/andrewnicols/moodle

  • Loading branch information...
2 parents 23a6fca + 1015b24 commit fb3c1d2b3481937cd05db9951ca2ed77002d5bae @nebgor nebgor committed Mar 5, 2013
Showing with 8 additions and 3 deletions.
  1. +5 −2 lib/yui/build/moodle-core-tooltip/moodle-core-tooltip.js
  2. +3 −1 theme/base/style/core.css
@@ -252,8 +252,7 @@ YUI.add('moodle-core-tooltip', function (Y, NAME) {
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.
@@ -263,6 +262,10 @@ YUI.add('moodle-core-tooltip', function (Y, NAME) {
// 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 fb3c1d2

Please sign in to comment.