title: Bootstrap 4 Navbar: right-aligned dropdown menu opens on the right: overflow
body: <p>I am using Bootstrap 4 for a very simple navbar, I just noticed that my right-aligned dropdown opens... on the right which creates an overflow (ie. the horizontal scrollbar of the webbrowser is showing up).</p>
  
  <p>This is the code the navbar:</p>
  
  <pre><code>&lt;nav class="navbar navbar-expand-lg navbar-light bg-light"&gt;
      &lt;a class="navbar-brand" href="#"&gt;Navbar&lt;/a&gt;
      &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"&gt;
          &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;div id="navbarNavDropdown" class="navbar-collapse collapse"&gt;
          &lt;ul class="navbar-nav mr-auto"&gt;
              &lt;li class="nav-item"&gt;
                  &lt;a class="nav-link" href="#"&gt;Recipes&lt;/a&gt;
              &lt;/li&gt;
              &lt;li class="nav-item"&gt;
                  &lt;a class="nav-link" href="#"&gt;Shopping List&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
          &lt;ul class="navbar-nav"&gt;
              &lt;li class="dropdown"&gt;
                  &lt;a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown"&gt;
                    Manage
                  &lt;/a&gt;
                  &lt;div class="dropdown-menu"&gt;
                      &lt;a class="dropdown-item" href="#"&gt;Save Data&lt;/a&gt;
                      &lt;a class="dropdown-item" href="#"&gt;Fetch Data&lt;/a&gt;
                  &lt;/div&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>And the related codepen: <a href="https://codepen.io/ehouarn-perret/pen/MLoGdE" rel="nofollow noreferrer">https://codepen.io/ehouarn-perret/pen/MLoGdE</a></p>
  
  <p>How to make that right-aligned dropdown to open the menu on the left?</p>