im struggling very much with the implementation of materials mat-form-field inside a mat-card. I've created a complete new solution to demonstrate my problem. For example, i'm trying to add two mat-cards. One above the other. The first card has a mat-form-field inside and the other a image for example. That works fine. But when i click on the mat-form-field, the selection options are shown at the bottom of the page in full size. Here is the simplest implementation. tested on firefox and chrome.
<div fxFlex=25%>
<mat-card>
<mat-form-field>
<mat-select placeholder="Select">
<mat-option value="option">Option </mat-option>
</mat-select>
</mat-form-field>
</mat-card>
<mat-card>
<img mat-card-image src="http://images.all-free-download.com/images/graphiclarge/harry_potter_icon_6825007.jpg">
</mat-card>
</div>
I've tried different things like: css styling, fxLayout="column", fxFill, put the i div containers and so on. And yes my BrowserAnimationsModule is loaded. They are also no errors.
width and height
to the the image tag – Aravind