title: AngularJs UI Bootstrap dropdown position is miscalculated while adding ngif for dropdown-menu
body: <p>AngularJs UI Bootstrap is miscalculating position of dropdown while adding ng-if condition for ui element holding 'dropdown-menu' class.</p>
  
  <p>AngularJs UI Bootstrap version - 0.3.13
  AngularJs version - 1.3.17</p>
  
  <p>This is a plunker where issue is regenerated - <a href="http://next.plnkr.co/edit/sSXH5KeMQymaFNpG" rel="nofollow noreferrer">http://next.plnkr.co/edit/sSXH5KeMQymaFNpG</a></p>
  
  <pre><code>&lt;div class="btn-group" dropdown dropdown-append-to-body&gt;
    &lt;button id="btn-append-to-body" type="button" class="btn btn-primary" dropdown-toggle&gt;
       Dropdown on Body &lt;span class="caret"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;ul class="dropdown-menu" ng-if="myFlag" role="menu" aria-labelledby="btn-append-to-body"&gt;&lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Expecting some solution from ui-bootstrap</p>