Commit 662d7cd9 authored by Leigh B Stoller's avatar Leigh B Stoller

Tweak the nodetype submenus to make it less likely they will clip off

the screen. Not a perfect solution, needs more CSS magic that I don't
want to learn right now.
parent 2a0a5754
......@@ -599,13 +599,9 @@ blockquote #selected_profile_description {
position: relative;
}
.dropdown-submenu:hover>.dropdown-menu {
display: inline-block;
}
.dropdown-submenu>.dropdown-menu {
bottom: 0% !important;
top :auto !important;
bottom: 0%;
top : auto !important;
left: 100%;
margin-top: -6px;
margin-left: -1px;
......
......@@ -1339,6 +1339,25 @@ $(function () {
.on("hide.bs.dropdown", function (event) {
$(innerdiv).find(".glyphicon-info-sign").popover("hide");
});
$(innerdiv).find(".dropdown-submenu")
.hover(
function(event) {
var menu = $(event.target)
.parent().find(".dropdown-menu");
$(menu).css("display", "inline-block");
var height = $(menu).height();
if (height > 26) {
height = 0 - (height / 2);
$(menu).css("bottom", height + "px");
}
},
function(event) {
var menu = $(event.target)
.parent().find(".dropdown-menu");
$(menu).css("display", "none");
});
// Make sure popovers are gone when a submenu is gone. We do not
// get the dropdown events for these, so hook into hover.
......
......@@ -38,12 +38,12 @@
}
.scrollable-submenu {
height: auto;
max-height: 350px;
max-height: 250px;
overflow-x: hidden;
}
.scrollable-menubroken {
height: auto;
max-height: 350px;
max-height: 250px;
overflow-y: scroll;
}
.icon-info-right {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment