[GridList] Composition: width and height not calculated if made into a component #11996
Closed
2 tasks done
Labels
component: image list
This is the name of the generic UI component, not the React module!
support: question
Community support but can be turned into an improvement
Using the guide from https://material-ui.com/demos/grid-list/, when the GridListTile is extracted into a component, the width and height of the tile will not be calculated.
Expected Behavior
Width and height of the tile should calculated into style, e.g. style="width: 33.3333%; height: 204px; padding: 2px;".
Current Behavior
Width and height of the tile does not appear in GridListTile dom.
Steps to Reproduce (for bugs)
https://codesandbox.io/s/0y38lj2r0n
Context
Wanted to extract the component for simplification as code was too long.
Your Environment
The text was updated successfully, but these errors were encountered: