title: Bootstrap popover in fixed nav on wide page
body: <p>I am using fixed bootstrap responsive navigation on a page with fixed width container, i.e. on small devices page itself has a horizontal scroll, but navigation adopts to a page width.</p>
  
  <p>One of the buttons in navigation has a popover. The problem is: popover is rendered incorrectly or completely disappears when you scroll main page to the right.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!-- Fixed navbar --&gt;
  &lt;nav class="navbar navbar-default navbar-fixed-top" role="navigation"&gt;
      &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;a class="navbar-brand" href="#"&gt;Project name&lt;/a&gt;
          &lt;/div&gt;
          &lt;div id="navbar" class="navbar-collapse collapse"&gt;
              &lt;ul class="nav navbar-nav"&gt;
                  &lt;li&gt;&lt;a href="#dummy1"&gt;Dummy 1&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#dummy2"&gt;Dummy 2&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;
                    &lt;a href="#contact" data-placement="bottom" data-trigger="click" data-container="body" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?"&gt;Contact Popover&lt;/a&gt;
                  &lt;/li&gt;             
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;!--/.nav-collapse --&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  &lt;div id="main" class="container"&gt;
      &lt;div class="row"&gt;
          &lt;h1&gt;Dummy 1&lt;/h1&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,&lt;/p&gt;
      &lt;/div&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>body {
      padding-top: 50px;
      width: 1700px;
  }
  </code></pre>
  
  <p>Here is an example: <a href="https://jsfiddle.net/nnxfk7s6/8/" rel="nofollow noreferrer">https://jsfiddle.net/nnxfk7s6/8/</a></p>
  
  <ul>
  <li>Run snippet</li>
  <li>Press "Contact Popover" to see the popover</li>
  <li>Scroll page to the right</li>
  <li>Press "Contact Popover" again to see not fully rendered popover</li>
  </ul>
  
  <p>I tried to play with <code>container</code> and <code>viewport</code> properties of the popover, but it did not resolve a problem. (<a href="http://getbootstrap.com/javascript/#popovers-options" rel="nofollow noreferrer">http://getbootstrap.com/javascript/#popovers-options</a>)</p>