I want to use mat-grid-list to create a grid list layout in which each mat-grid-tile contains a mat-card that fills the entire tile regardless of the card's content. Most of the cards need to occupy multiple rows and/or columns. So far I haven't been able to get it working.
Things I have tried:
- Setting each card's CSS
widthandheightto 100% using the selectormat-card. This causes each card to fill the entire screen rather than just themat-grid-tilethat contains the card. - Setting each card's CSS
widthandheightto 100% using the selectormat-grid-tile > mat-card. This has the same effect as not having a selector at all, as the cards just remain centered within their grid tiles wrapped to the sizes of the their respective contents. - Following the code in this question. The problem is that the properties
flex,layout-wrap, andlayout-fillare not available to me, probably because the sample code is using Angular 2 rather than 4.
Edit: It looks like I misunderstood the results of the first attempt listed above. The cards actually fill just the mat-grid-tiles but their surrounding shadows get cut off by the tiles' boundaries.