From 4b2bc20d0e1804d157a470723577100a59b59b4c Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 30 Nov 2017 22:01:21 +0100 Subject: [PATCH] scrolling for big drop down menus, fixes #360 --- public/js/forms.js | 4 ++++ 1 file changed, 4 insertions(+) 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"); });