From 09a3cc1caa21907d902df6d6f9a2d0f8740d2e0c Mon Sep 17 00:00:00 2001 From: Casey Holzer Date: Wed, 10 Apr 2019 14:44:17 -0600 Subject: [PATCH] force menuInner margin to be 0 if virtualScroll is false (#2258) --- js/bootstrap-select.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index e293420ed..7b2e85fa1 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -1303,6 +1303,9 @@ menuInner.firstChild.style.marginTop = marginTop + 'px'; menuInner.firstChild.style.marginBottom = marginBottom + 'px'; + } else { + menuInner.firstChild.style.marginTop = 0; + menuInner.firstChild.style.marginBottom = 0; } menuInner.firstChild.appendChild(menuFragment);