title: Angular Materials Mat Tab Group / Mat Tab width behavior
body: <p>I implemented Angular Material mat tabs and mat tab group according to the Angular documentation, but I'm running into an issue when I hit tab two then back to tab one.  The sizing, for a few moments gets large for the first tab and then goes back to normal:</p>
  
  <p>On tab two and hit tab one
  <a href="https://i.stack.imgur.com/UJPPI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UJPPI.png" alt="On tab two and hit tab one"></a></p>
  
  <p>A few moments later after hitting tab one it goes back to normal
  <a href="https://i.stack.imgur.com/e4QKi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e4QKi.png" alt="A few moments later after hitting tab one"></a></p>
  
  <p>The code is straightforward:</p>
  
  <pre><code>&lt;div *ngIf="auth.isLoggedIn()"&gt;
  &lt;mat-tab-group animationDuration="1000ms"&gt;
      &lt;mat-tab label="Real Time Market Info"&gt; 
          &lt;app-stock-monitor&gt;&lt;/app-stock-monitor&gt;
          &lt;app-sectors&gt;&lt;/app-sectors&gt;
          &lt;app-news&gt;&lt;/app-news&gt;
      &lt;/mat-tab&gt;
      &lt;mat-tab label="Market Predictor"&gt; TBD &lt;/mat-tab&gt;
  &lt;/mat-tab-group&gt;
  </code></pre>
  
  <p></p>