I am new to angular 2 material design. What I am trying to achieve is to create a grid list using angular2 material and place md-cards inside md-grid-tile. Though the md-card have position:relative, they are overflowing the md-grid-tile. click this link, the cards are overlapping and they are overflowing the md-grid-tile in a md-grid-list
Following is the code that I have used:
<body>
<md-toolbar layout="row"> <md-button class="menu">
<md-icon md-svg-icon="menu"></md-icon> </md-button>
<h3>Pipeline UI</h3>
</md-toolbar>
<md-grid-list cols="2" rowHeight="2:1" gutterSize="15px">
<md-grid-tile layout-wrap *ngFor="let item of releaseType">
<md-card flex layout-fill>
<md-card-header>test1</md-card-header>
<md-card-content>
<stage [init]="item.submissions"></stage></md-card-content>
</md-card>
</md-grid-tile>
</md-grid-list>
</body>
Any help to solve this is extremely appreciated :)
From what I figured out,
md-grid-tile
creates inside another dom element calledfigure
and one of its css rules isalign-items: center;
. I used: