Skip to main content
Robin B.
New Member
Nov 4, 2026 2:44 PM UTC
Question

Nested image components lose scaling after instance swap

Hi everyone!

I've been struggling with a scaling issue involving nested component instances in Figma and was wondering if anyone else has experienced this or knows a possible solution.

I'm working with a fairly complex component library that uses multiple levels of nested components, variants, and exposed instance swap properties.

The problem

When I scale a component using Figma's Scale Tool (K), everything initially looks correct. However, when I use that component as an instance outside its main component and change one of its nested states through the properties panel, some image layers suddenly jump back to their original size.

Interestingly, the surrounding components remain correctly scaled. Only the image layers inside certain nested instances seem to lose their scaling.

I've managed to reproduce this with a much simpler setup using colored image-filled rectangles, so it doesn't appear to be related to the complexity of my original components.

How to reproduce

  1. Create a component containing a 50 × 50 px rectangle with an image fill.

  2. Create different states or interchangeable components with different images.

  3. Nest these components inside other components and expose their properties.

  4. Create an instance of the parent component outside the main component.

  5. Scale a nested component using the Scale Tool (K), for example to 69.1%.

  6. Switch the nested component to another state using the properties panel.

Expected behavior:
The image should remain at its scaled size of approximately 34.55 × 34.55 px.

Actual behavior:
The nested instance still has the correct scale factor of 0.691, but the image layer inside it jumps back to 50 × 50 px.

This causes the image to appear much larger than the surrounding elements.

What I've tried

I've experimented with different component structures and Auto Layout, but unfortunately couldn't resolve the issue.

I even created a small Figma plugin to investigate the behavior. It confirmed that the scaling factor of the nested instance remains correct, while the image layer itself resets to its original dimensions.

Unfortunately, attempts to correct the scaling through the Plugin API were blocked by Figma's instance override restrictions.

Why this is particularly frustrating

We rely on shared component libraries and use Figma Dev Mode to provide developers with accurate dimensions and positions.

Because of this, simply masking the oversized images or detaching instances isn't really an option. The actual geometry needs to remain correct, and all components need to stay connected to their libraries.

I've attached a screen recording showing the component structure and exactly when the issue occurs.

Has anyone encountered something similar?

Is this a known limitation or possibly a bug in how Figma handles scaling within nested instances?

I'd really appreciate any suggestions or workarounds that preserve the original component connections and correct dimensions.

Thanks in advance!

2 replies

adamsmasher
Figmate
Figmate
Nov 5, 2026 11:14 PM UTC

Hey, ​@Robin B. - thanks for the detailed reproduction steps. Very helpful! I also appreciate how far you went to diagnose this, even to the point of creating a plugin.

 

I took what you documented and shared that with the team. It sounds like it might be similar to something the team has already identified, but I want to make sure it’s the same before I advise you further. Thanks for your patience!

adamsmasher
Figmate
Figmate
Nov 18, 2026 10:41 PM UTC

Hi again, ​@Robin B. - thanks for your patience while I tracked this down. It did turn out to be a known issue that our team is aware of.

 

In the meantime, here are a couple of solutions you can try, depending on how your library is built:

  • If those components differ only by their images, try keeping the same nested instance and changing the image layer’s fill instead of swapping the component. That keeps the component connected, although the image fill becomes an override.

  • If you can edit the library, try defining the required dimensions directly in the components or size variants, so the affected image layers don’t depend on inherited scaling.

  • If the components support resizing, explicit width and height values may also help instead of using the Scale tool. This depends on their constraints or auto layout setup.

 

It might be worth trying this out with your test example first to see which works best for you.