我内心的所有内容都溢出了卡片。
<md-content ng-controller="TestCtrl" layout-padding>
<div layout="row" style="height: calc(100vh - 64px);">
<!-- left sidenav : search and search results -->
<div layout="column" flex-gt-sm="30" style="background-color: #fafafa;">
<md-content layout="column" flex class="search-results" layout-margin style="overflow: auto;">
<span class="md-subhead muted">Results: </span>
<md-card ng-repeat="place in places" class="result-card" layout="column">
<md-card-content flex>
<h2 class="title">{{place.first_name}} {{place.last_name}}</h2>
<h4 class="sub-cat">Prospect Status: <span class="state">{{place.prospect_status}}</span></h4>
<h4 class="sub-cat">Spiritual Condition: <span class="state">{{place.spiritual_condition}}</span></h4>
<h4 class="sub-cat">Street: <span class="state">{{place.address[0].street_no}}</span></h4>
<h4 class="sub-cat">Prospect Status: <span class="state">{{place.prospect_status}}</span></h4>
<h4 class="sub-cat">Spiritual Condition: <span class="state">{{place.spiritual_condition}}</span></h4>
<h4 class="sub-cat">Street: <span class="state">{{place.address[0].street_no}}</span></h4>
</md-card-content>
</md-card>
</md-content>
</div>
</div>
这里是一个link来自该人。
答案 0 :(得分:2)
只需从您的md-content组件中删除layout="column"
:
<md-content flex class="search-results" layout-margin style="overflow: auto;">
答案 1 :(得分:0)
只需将layout-fill
属性添加到md-card
:
<md-card ng-repeat="place in places" class="result-card" layout="column" layout-fill>...</md-card>