md-card growing bigger than the screen
<p><br/>I hope someone can help me with this piece of code that I have been struggling with for the last couple of hours. I have a grid of cards with a somewhat responsive design. <a href="http://codepen.io/eracuna/pen/BjdvGM" rel="nofollow">see this pen</a>.<br/>My problem is that I do not understand why the 3rd and 4th cards don't fit the screen like the rest of them and instead their width gets increased a lot more than needed.
Just a heads up, I cannot use md-grid so if you can point me to what's wrong with the current code or element distribution I will really appreciate it.</p>

<pre><code>&lt;div ng-controller="MainCtrl" ng-cloak layout flex&gt;
&lt;!-- Some side content --&gt;
&lt;div id="sideContent" hide-xs flex-sm="33" flex-md="30" flex-lg="25" layout="column" class="md-whiteframe-z2" style="z-index: 55"&gt;
  &lt;p&gt;Some side content&lt;/p&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, affert melius disputando ex his. Sit an unum disputando ullamcorper, his ne summo nostrud graecis. At modus nulla vidisse nam, pro et alienum iudicabit repudiandae, mei te dictas dignissim reprehendunt. Vivendum gloriatur
    adversarium te nec, liber apeirian tractatos ad pri, choro latine voluptatibus eu est. Ne maluisset liberavisse eos, et luptatum referrentur per.&lt;/p&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, affert melius disputando ex his. Sit an unum disputando ullamcorper, his ne summo nostrud graecis. At modus nulla vidisse nam, pro et alienum iudicabit repudiandae, mei te dictas dignissim reprehendunt. Vivendum gloriatur
    adversarium te nec, liber apeirian tractatos ad pri, choro latine voluptatibus eu est. Ne maluisset liberavisse eos, et luptatum referrentur per.&lt;/p&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, affert melius disputando ex his. Sit an unum disputando ullamcorper, his ne summo nostrud graecis. At modus nulla vidisse nam, pro et alienum iudicabit repudiandae, mei te dictas dignissim reprehendunt. Vivendum gloriatur
    adversarium te nec, liber apeirian tractatos ad pri, choro latine voluptatibus eu est. Ne maluisset liberavisse eos, et luptatum referrentur per.&lt;/p&gt;
&lt;/div&gt;
&lt;md-content style="z-index: 54; position: relative;" flex&gt;

  &lt;div layout layout-wrap&gt;

    &lt;!-- Custom sized card --&gt;
    &lt;div layout flex="35" flex-md="100" flex-xs="100" flex-sm="100"&gt;
      &lt;md-card flex="noshrink" style="width:300px;height:700px;"&gt;
        &lt;md-toolbar class="md-hue-2"&gt;
          &lt;div class="md-toolbar-tools"&gt;
            &lt;h3&gt;&lt;span&gt;Card 1&lt;/span&gt;&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/md-toolbar&gt;
        &lt;md-card-content layout="column" layout-padding&gt;Content in card 1&lt;/md-card-content&gt;
        &lt;span flex&gt;&lt;/span&gt;
        &lt;md-card-icon-actions layout&gt;
          &lt;span flex&gt;&lt;/span&gt;
          &lt;md-button aria-label="details"&gt;
            &lt;span&gt;Details&lt;/span&gt;
          &lt;/md-button&gt;
        &lt;/md-card-icon-actions&gt;
      &lt;/md-card&gt;
    &lt;/div&gt;

    &lt;div layout flex flex-md="100" flex-xs="100" flex-sm="100"&gt;

      &lt;div layout layout-wrap flex&gt;
        &lt;!-- Card 2 --&gt;
        &lt;md-card flex="noshrink" style="min-width:300px;"&gt;
          &lt;md-toolbar class="md-hue-2"&gt;
            &lt;div class="md-toolbar-tools"&gt;
              &lt;h3&gt;&lt;span&gt;Card 2&lt;/span&gt;&lt;/h3&gt;
            &lt;/div&gt;
          &lt;/md-toolbar&gt;
          &lt;md-card-content layout="column" layout-padding&gt;
            Content in card 2
            &lt;md-select placeholder="{{data.currentSelected}}" ng-model="selection"&gt;
              &lt;md-option ng-value="$index" ng-repeat="text in data.options"&gt;{{text.text}}&lt;/md-option&gt;
            &lt;/md-select&gt;
            &lt;span&gt;Some random text&lt;br /&gt;
More random text, with some more text&lt;/span&gt;
          &lt;/md-card-content&gt;
          &lt;span flex&gt;&lt;/span&gt;
          &lt;md-card-icon-actions layout&gt;
            &lt;span flex&gt;&lt;/span&gt;
            &lt;md-button aria-label="details"&gt;
              &lt;span&gt;Details&lt;/span&gt;
            &lt;/md-button&gt;
          &lt;/md-card-icon-actions&gt;
        &lt;/md-card&gt;
        &lt;!-- tabs --&gt;
        &lt;md-card flex="noshrink" style="min-width:300px;"&gt;
          &lt;md-toolbar class="md-hue-2"&gt;
            &lt;div class="md-toolbar-tools"&gt;
              &lt;h3&gt;&lt;span&gt;Card 3&lt;/span&gt;&lt;/h3&gt;
            &lt;/div&gt;
          &lt;/md-toolbar&gt;
          &lt;md-card-content layout="column" layout-padding&gt;
            &lt;md-tabs md-selected="1" md-center-tabs flex&gt;
              &lt;md-tab ng-repeat="tab in data.tabs"&gt;
                &lt;md-tab-label&gt;{{tab.name}}&lt;/md-tab-label&gt;
                &lt;md-tab-body&gt;
                  &lt;div style="padding-top:20px;"&gt;
                    &lt;md-list-item class="md-2-line" ng-repeat="content in tab.content"&gt;
                      &lt;img ng-attr-src="http://placehold.it/{{::content.image}}" class="md-avatar" /&gt;
                      &lt;div class="md-list-item-text" layout="column"&gt;
                        &lt;h3&gt;{{::content.title}}&lt;/h3&gt;
                        &lt;p&gt;{{::content.data}}&lt;/p&gt;
                      &lt;/div&gt;
                      &lt;md-icon class="material-icons"&gt;
                        cached
                        &lt;md-tooltip&gt;Icon 1&lt;/md-tooltip&gt;
                      &lt;/md-icon&gt;
                      &lt;span style="margin-left:5px;"&gt;&lt;/span&gt;
                      &lt;md-icon class="material-icons"&gt;
                        cached
                        &lt;md-tooltip&gt;Icon 2&lt;/md-tooltip&gt;
                      &lt;/md-icon&gt;
                    &lt;/md-list-item&gt;
                  &lt;/div&gt;
                &lt;/md-tab-body&gt;
              &lt;/md-tab&gt;
            &lt;/md-tabs&gt;
          &lt;/md-card-content&gt;
          &lt;span flex&gt;&lt;/span&gt;
          &lt;md-card-icon-actions layout&gt;
            &lt;span flex&gt;&lt;/span&gt;
            &lt;md-button aria-label="details"&gt;
              &lt;span&gt;Details&lt;/span&gt;
            &lt;/md-button&gt;
          &lt;/md-card-icon-actions&gt;
        &lt;/md-card&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- Lorem --&gt;
  &lt;div layout flex&gt;
    &lt;div layout flex&gt;
      &lt;md-card flex="noshrink" style="min-width:300px;"&gt;
        &lt;md-toolbar class="md-hue-2"&gt;
          &lt;div class="md-toolbar-tools"&gt;
            &lt;h3&gt;&lt;span&gt;Card 4&lt;/span&gt;&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/md-toolbar&gt;
        &lt;md-card-content layout="column" layout-padding&gt;{{::data.lorem}}&lt;/md-card-content&gt;
        &lt;span flex&gt;&lt;/span&gt;
        &lt;md-card-icon-actions layout&gt;
          &lt;span flex&gt;&lt;/span&gt;
          &lt;md-button aria-label="details"&gt;
            &lt;span&gt;Details&lt;/span&gt;
          &lt;/md-button&gt;
        &lt;/md-card-icon-actions&gt;
      &lt;/md-card&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div layout layout-wrap&gt;

    &lt;!-- Card 5 --&gt;
    &lt;div layout flex&gt;
      &lt;md-card flex="noshrink" style="width:300px;"&gt;
        &lt;md-toolbar class="md-hue-2"&gt;
          &lt;div class="md-toolbar-tools"&gt;
            &lt;h3&gt;&lt;span&gt;Card 5&lt;/span&gt;&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/md-toolbar&gt;
        &lt;md-card-content layout="column" layout-padding&gt;
          &lt;div ng-repeat="content in data.content"&gt;{{::content}}&lt;/div&gt;
        &lt;/md-card-content&gt;
        &lt;span flex&gt;&lt;/span&gt;
        &lt;md-card-icon-actions layout&gt;
          &lt;span flex&gt;&lt;/span&gt;
          &lt;md-button aria-label="details"&gt;
            &lt;span&gt;Details&lt;/span&gt;
          &lt;/md-button&gt;
        &lt;/md-card-icon-actions&gt;
      &lt;/md-card&gt;
    &lt;/div&gt;
    &lt;div layout flex&gt;&lt;/div&gt;
    &lt;!-- Card 6 --&gt;
    &lt;div layout flex&gt;
      &lt;md-card flex="noshrink" style="width:300px;"&gt;
        &lt;md-toolbar class="md-hue-2"&gt;
          &lt;div class="md-toolbar-tools"&gt;
            &lt;h3&gt;&lt;span&gt;Card 6&lt;/span&gt;&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/md-toolbar&gt;
        &lt;md-card-content layout="column" layout-padding&gt;
          &lt;md-subheader class="md-no-sticky"&gt;Some addresses {{::data.addresses.expiry_date}}&lt;/md-subheader&gt;
          &lt;md-list-item class="md-3-line" ng-repeat="address in data.addresses.address"&gt;
            &lt;md-button class="md-icon-button" href="http://maps.google.com/maps?q=255 Queens Avenue London ON Canada" target="_blank" md-autofocus&gt;
              &lt;md-icon class="material-icons"&gt;place&lt;/md-icon&gt;
              &lt;md-tooltip&gt;Open address in Google map&lt;/md-tooltip&gt;
            &lt;/md-button&gt;
            &lt;div class="md-list-item-text" layout="column"&gt;
              &lt;h3&gt;{{::address.description}}&lt;/h3&gt;
              &lt;p&gt;{{::address.street}}&lt;/p&gt;
              &lt;p&gt;{{::address.city}}, {{::address.postal_code}}&lt;/p&gt;
            &lt;/div&gt;
          &lt;/md-list-item&gt;
        &lt;/md-card-content&gt;
        &lt;span flex&gt;&lt;/span&gt;
        &lt;md-card-icon-actions layout&gt;
          &lt;span flex&gt;&lt;/span&gt;
          &lt;md-button aria-label="details"&gt;
            &lt;span&gt;Details&lt;/span&gt;
          &lt;/md-button&gt;
        &lt;/md-card-icon-actions&gt;
      &lt;/md-card&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/md-content&gt;
&lt;/div&gt;
</code></pre>