Skip to main content
Geoffrey Van Meirhaeghe
New Member
Nov 6, 2026 1:16 PM UTC

Component with grid breaks row hug/fill when removing certain cells in a placed instance

I have been working on expanding our design system in template components such as grid templates which hold slots inside each cell. The idea is the grid components get built once and the slots can hold certain scoped composition components (for example: a content card, tiles, images, etc.)

When copying the grid component  in its own instance everything works perfect as long as the cell amount is maintained of the master’s setup (for example 10 cells divided between 2 row and 5 columns.)

...however when the instance only needs 2 of the 10 and I want to hide the other 8, the grid breaks. The grid’s row hug/fill property is automatically set back to fill, components collapse, etc. When unhiding the others, it jumps back into position.

Steps to reproduce my setup:

  • Create a primitive “_cell” which holds a content slot
  • Create a grid component with some layout (for example 5x2) and fill each cell with the ‘_cell’ primitive
  • Set up the grid so the columns fill with 1fr, and height is hugging content inside
  • Set up the _cells the same way so they also fill the column width, but hug inner content height
  • Create some card component which will be used to fill the slot
  • Create an instance of the grid and will the cells with the card component

Check: should look good

  • Now remove 2 rows (maybe change some content on the cards as if you’re really defining a design)

Check: Should auto switch the height from hug to fill and layout should start breaking.

2 replies

Geoffrey Van Meirhaeghe
New Member
Nov 20, 2026 10:32 AM UTC

I imagine some visuals help to bump this thread a bit, as it is a fairly widespread issue we are encountering and it’s breaking our designs constantly:

Top version is a grid component outside of any slot, below is an Accordeon component which is supposed to hold that grid component inside (the wrapper is set to hug/hug and so are all the grid rows in the grid, yet they do show up as empty grids, but still show the gaps). The issue does not happen when the grid component is standalone, but it does once it gets placed in a slot:

 

Component in standalone mode, no extra spacing underneath the filled in cells, although 2 rows of cells are set to hidden.

 

That same component used inside a slot (which is set to hug/hug) → The empty cells are still taken into account and the gap thus persists.

 

djv
Figmate
Community Support
Nov 20, 2026 3:42 PM UTC

Hi ​@Geoffrey Van Meirhaeghe, thanks for reaching out! 
 

I understand how this must be slowing down your workflow. These detailed steps are very helpful. We’re tracking a similar issue where hiding cells in a grid instance can change rows from Hug to fractional sizing, causing the layout to collapse.
 

Could you share a simplified example file with view access showing the main component and affected instance? Or a short recording with the row-sizing settings visible would also help us confirm whether you’re running into the same issue. Also, if you’d prefer not to share publicly, you’re always welcome to file a bug report directly with our support team here.