<p dir="auto">Hi all,</p>
<p dir="auto">There's an issue with right aligned navbar elements placed inside a static navbar.<br>
See an example here : <a href="http://jsfiddle.net/A6QUB/" rel="nofollow">http://jsfiddle.net/A6QUB/</a></p>
<p dir="auto">The navbar-right element has a negative margin which causes it to overflow beyond the window's width.</p>
<p dir="auto">I've found this rule in navbar.less on line 254 which applies a negative margin :</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".navbar-nav {    
    &amp;.navbar-right:last-child {
      margin-right: -@navbar-padding-horizontal;
    }
}"><pre class="notranslate">.<span class="pl-c1">navbar-nav</span> {    
    <span class="pl-ent">&amp;</span>.<span class="pl-c1">navbar-right</span><span class="pl-kos">:</span><span class="pl-c1">last-child</span> {
      <span class="pl-c1">margin-right</span><span class="pl-kos">:</span> <span class="pl-c1">-</span><span class="pl-k">@navbar-padding-horizontal</span>;
    }
}</pre></div>
<p dir="auto">The navbar right padding is broken when using navbar-fixed-top with Bootstrap 3.0.3.<br>
Was working fine with Bootstrap 3.0.2.</p>
<p dir="auto">navbar-static-top and navbar-fixed-bottom are probably impacted too.</p>
<p dir="auto">Live example: <a href="http://plnkr.co/edit/zn1Pc0?p=preview" rel="nofollow">http://plnkr.co/edit/zn1Pc0?p=preview</a></p>
<p dir="auto">With navbar-fixed-top:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d88857b2752f9c8c13dc7235ccc85d4c317994d715a6900918d09174f2c0f3ac/687474703a2f2f7333302e706f7374696d672e6f72672f716871743134306b682f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f30375f504d2e706e67"><img src="https://camo.githubusercontent.com/d88857b2752f9c8c13dc7235ccc85d4c317994d715a6900918d09174f2c0f3ac/687474703a2f2f7333302e706f7374696d672e6f72672f716871743134306b682f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f30375f504d2e706e67" alt="With navbar-fixed-top" data-canonical-src="http://s30.postimg.org/qhqt140kh/Screen_Shot_2013_12_08_at_5_32_07_PM.png" style="max-width: 100%;"></a></p>
<p dir="auto">Without navbar-fixed-top:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b9f744b05105f2e81a1bd31025d9ece20d875ef7476f42a813a9f592dcdfe4fd/687474703a2f2f7333302e706f7374696d672e6f72672f796272656d693864642f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f33305f504d2e706e67"><img src="https://camo.githubusercontent.com/b9f744b05105f2e81a1bd31025d9ece20d875ef7476f42a813a9f592dcdfe4fd/687474703a2f2f7333302e706f7374696d672e6f72672f796272656d693864642f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f33305f504d2e706e67" alt="Without navbar-fixed-top" data-canonical-src="http://s30.postimg.org/ybremi8dd/Screen_Shot_2013_12_08_at_5_32_30_PM.png" style="max-width: 100%;"></a></p>
<p dir="auto">The issue is most probably related to this commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9/hovercard" href="https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9"><tt>5a03655</tt></a></p>
<p dir="auto">Version 3.0.3 contains <a href="https://github.com/twbs/bootstrap/blob/v3.0.3/less/navbar.less#L80">the following code</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    // Undo the collapse side padding for navbars with containers to ensure
    // alignment of right-aligned contents.
    .navbar-fixed-top &amp;,
    .navbar-static-top &amp;,
    .navbar-fixed-bottom &amp; {
      padding-left: 0;
      padding-right: 0;
    }"><pre class="notranslate">    <span class="pl-c">// Undo the collapse side padding for navbars with containers to ensure</span>
    <span class="pl-c">// alignment of right-aligned contents.</span>
    <span class="pl-kos">.</span><span class="pl-s1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">fixed</span><span class="pl-c1">-</span><span class="pl-s1">top</span> <span class="pl-c1">&amp;</span><span class="pl-kos">,</span>
    <span class="pl-kos">.</span><span class="pl-c1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">static</span><span class="pl-c1">-</span><span class="pl-s1">top</span> <span class="pl-c1">&amp;</span><span class="pl-kos">,</span>
    <span class="pl-kos">.</span><span class="pl-c1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">fixed</span><span class="pl-c1">-</span><span class="pl-s1">bottom</span> <span class="pl-c1">&amp;</span> <span class="pl-kos">{</span>
      <span class="pl-s1">padding</span><span class="pl-c1">-</span><span class="pl-c1">left</span>: <span class="pl-c1">0</span><span class="pl-kos"></span><span class="pl-kos">;</span>
      <span class="pl-s1">padding</span><span class="pl-c1">-</span><span class="pl-s1">right</span>: <span class="pl-c1">0</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span></pre></div>
<p dir="auto">3.0.2 <a href="https://github.com/twbs/bootstrap/blob/v3.0.2/less/navbar.less#L80">does not</a>.</p>