Skip to content

Commit

Permalink
force menuInner margin to be 0 if virtualScroll is false (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Apr 10, 2019
1 parent 8d5d51f commit 09a3cc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/bootstrap-select.js
Expand Up @@ -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);
Expand Down

0 comments on commit 09a3cc1

Please sign in to comment.