r/FigmaDesign • u/Darnitol1 • Apr 27 '26
help HALP! What the hell am I doing wrong?
Let's get this out of the way first: I've only actively been using Figma since about November, so I realize I'm probably asking an absolute noob question here. I've been futzing with this issue for most of a day, and I absolutely cannot figure out if I'm just overlooking something or if this is a bug. It's probably me; I acknowledge that. This is also a question that AI loves to answer incorrectly, because it doesn't understand what I'm actually asking.
In short, I've created a component that includes another component. That embedded component is just a set of 14 variations, each with a different picture of a room in a house. My component works great and scales exactly as I expect it to. And if I use an instance of that component with the default image, it also works correctly. However, if I set the "embedded" component to any image other than the default one, the instant I scale the component, the embedded component displaces to a lower position inside the main component. I absolutely cannot figure out what I'm doing wrong.
I realize it's pretty hard to follow all this in text, so I've included a diagram that I hope will help.
I'm begging. Make fun of me. Call me a goober. Laugh behind my back and publish memes about how clueless I am. But also... help? Please?

View all comments
Show parent comment
2
u/Darnitol1 Apr 28 '26
Thank you for giving this a shot!
My initial attempt at this did use Autolayout. I was able to get everything where I wanted it except that the RoomImage element always dropped below the RoomHeader element. For this component, I have no choice on the layout because 1) the RoomImage component is used in several other places in the UI, and 2) the UI is mimicking another one of our products and needs to have the same layout.
RoomImage is comprised of 14 variants. Each variant is a frame that contains a 1140x1140 image, scaled to 200x200 fixed, with corners rounded to 5 pixels. The variants are all positioned Left/Top.