summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-30 22:01:21 +0100
committermsquare <msquare@notrademark.de>2017-11-30 22:01:21 +0100
commit4b2bc20d0e1804d157a470723577100a59b59b4c (patch)
tree77e2ed63d89e47bb0c25d7e2c59950d4f34fd7a9 /public/js
parent962e7d5726e9720ba66fd268548b85238e098019 (diff)
scrolling for big drop down menus, fixes #360
Diffstat (limited to 'public/js')
-rw-r--r--public/js/forms.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/forms.js b/public/js/forms.js
index 97a89465..c7f4a095 100644
--- a/public/js/forms.js
+++ b/public/js/forms.js
@@ -82,4 +82,8 @@ $(function () {
$("input[type='submit']").prop("readonly", true).addClass("disabled");
return true;
});
+
+ $(".dropdown-menu").css("max-height", function() {
+ return ($(window).height() - 50) + "px";
+ }).css("overflow-y", "scroll");
});