MDL-64887 theme_boost: prevent drop downs from flipping up
authorBas Brands <bas@moodle.com>
Thu, 25 Jul 2019 13:24:03 +0000 (15:24 +0200)
committerBas Brands <bas@moodle.com>
Thu, 25 Jul 2019 13:24:03 +0000 (15:24 +0200)
theme/boost/amd/build/loader.min.js
theme/boost/amd/src/loader.js

index 2e45ad4..8b05b19 100644 (file)
Binary files a/theme/boost/amd/build/loader.min.js and b/theme/boost/amd/build/loader.min.js differ
index dc37f3c..88630ef 100644 (file)
@@ -58,6 +58,9 @@ define(['jquery', './tether', 'core/event'], function(jQuery, Tether, Event) {
             }
         });
 
+        // Disables flipping the dropdowns up and getting hidden behind the navbar.
+        jQuery.fn.dropdown.Constructor.Default.flip = false;
+
         // We need to call popover automatically if nodes are added to the page later.
         Event.getLegacyEvents().done(function(events) {
             jQuery(document).on(events.FILTER_CONTENT_UPDATED, function() {