MDL-39355 JavaScript: Correct zIndex for tooltip
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 25 Apr 2013 16:03:55 +0000 (17:03 +0100)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 25 Apr 2013 16:05:07 +0000 (17:05 +0100)
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-debug.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-min.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip.js
lib/yui/src/tooltip/js/tooltip.js

index c6a8de7..1071b0b 100644 (file)
Binary files a/lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-debug.js and b/lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-debug.js differ
index 5ee26df..0626402 100644 (file)
Binary files a/lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-min.js and b/lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-min.js differ
index c6a8de7..1071b0b 100644 (file)
Binary files a/lib/yui/build/moodle-core-tooltip/moodle-core-tooltip.js and b/lib/yui/build/moodle-core-tooltip/moodle-core-tooltip.js differ
index fb8c891..f48d116 100644 (file)
@@ -266,8 +266,7 @@ Y.extend(TOOLTIP, M.core.dialogue, {
         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.
@@ -277,6 +276,10 @@ Y.extend(TOOLTIP, M.core.dialogue, {
         // 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 = [