From d02b6f3583422b50b9f4dae323986da7ce40cb05 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 26 Apr 2018 18:22:14 +1000 Subject: [PATCH] Added scroll-bar to long modals Required to fix a bug in select2 where select boxes are drawn incorrecly in a long scrolling modal. Enforcing a scrollbar for overflow prevents this (magic)? Ref: https://github.com/select2/select2/issues/3897 --- InvenTree/static/css/inventree.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index 25c8a49b9f..4e8d4fa883 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -34,4 +34,17 @@ .inventree-content { padding-left: 15px; padding-right: 15px; +} + +.modal { + overflow: hidden; +} + +.modal-content { + border-radius: 0; + position:relative; + height: auto !important; + max-height: calc(100vh - 200px) !important; + overflow-y: scroll; + padding: 10px; } \ No newline at end of file