Whenever I set up a grid within a repeater and place an image within one of the columns, and then try to set the value of the grid column where the image is to "Max-Content", the column gets reduced to 0px and so the image basically disappears. Does anyone know why this is happening?
top of page
bottom of page
Hey, I'm Liron from Editor X product team.
I am sorry to hear that you are experiencing issues in Editor X.
Do you stretch the image first and then change the row height to max-content and then the row collapse? If so, that's create a "loop", because first you set the height of the image according to the grid (stretch) and then set the grid to size according to the image (max-content). This will also happen in a grid of a regular container and not just in a Repeater.
If this is the case, to avoid row collapsing you have 3 options:
1. Use min/max content for row height with a minimum value that will determine the cell height (see image above)
2. Instead of a stretching the image you can set it to 100% width and use any height rather than Auto, so the image height will define the cell height
3. Add another element to the grid cell to keep its height instead of the stretched image
Please feel free to let me if you have any other issues or concerns Thanks, Liron