Skip to main content
Question

Swap instance: Not changing height of new component

  • February 18, 2025
  • 1 reply
  • 91 views

Ivan24

Hi everyone,

I have a Feed item component, in there I have a static header and a content placeholder (also a new component).

I want to replace that content placeholder with a new component that has DIFFERENT height (along with color and text).

Now, when I do select the placeholder and swap the components - the new component has everything except the height! The height is still higher from the original placeholder even though I set to hug content. 

Original file with all components.
​​​​​​

Here is how it looks when I swap instance:

 

Here is the video of me showing the problem: 

 

MAIN GOAL:
I just want that when I swap the placeholder, it changes to the new component (with the width, height and everything else...) 

1 reply

Nate_G
  • Power Member
  • 180 replies
  • February 18, 2025

@Ivan24 I put together an example Figma file awhile back showing how to get slots (placeholders) to work. The way I found this to work, is if I want to swap in another component to replace my slot inside of an auto-layout container (card) and have that container respond accordingly, I need to also add auto-layout to that component. Hope it helps!

Here is the original file >
 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings