Skip to main content
Solved

Constraints with Pixel Fractions

  • January 8, 2026
  • 2 replies
  • 47 views

Smith_Samuel_D

Hello!

I encountered an issue today where children of a frame (auto layout or not) who have constraints set of any kind (Top + Bottom & Left + Right shown in video demo) will only grow in increments of 1px. In Auto Layout frames with Fill it works correctly, but not with non-Auto Layout. I think this is a bug! Or if it is working as expected, I think the expectation should change, as it does not meet my user expectation!

Thank you!

Sam Smith

Best answer by djv

Hi ​@Smith_Samuel_D, thanks for reaching out! 

This is currently expected behavior. When using constraints, child elements are restricted to growing or shrinking in increments of 1 pixel and cannot have subpixel dimensions or positions as a result of the constraints. I’ve updated your topic for clarity and updated it to a feature request. We’ll pass this onto the team for consideration. 
 

As a temporary solution, if you need your elements to resize with fractional pixels, especially when they need to "fill" a container, use Auto Layout for the parent frame: 

  • Convert the parent to Auto Layout: The constrained element behavior is generally observed in standard frames. In Auto Layout frames, the "Fill container" resizing option handles fractional sizing correctly.
  • Set child to "Fill container": Within the Auto Layout parent, set the child element's horizontal and/or vertical resizing to "Fill container" in the right sidebar. This will allow it to adapt to fractional pixel values when the parent is resized. 

Using Auto Layout often provides more robust and predictable responsive behavior compared to constraints. Thanks again for your feedback and hope this helps!

2 replies

djv
Figmate
  • Community Support
  • Answer
  • January 13, 2026

Hi ​@Smith_Samuel_D, thanks for reaching out! 

This is currently expected behavior. When using constraints, child elements are restricted to growing or shrinking in increments of 1 pixel and cannot have subpixel dimensions or positions as a result of the constraints. I’ve updated your topic for clarity and updated it to a feature request. We’ll pass this onto the team for consideration. 
 

As a temporary solution, if you need your elements to resize with fractional pixels, especially when they need to "fill" a container, use Auto Layout for the parent frame: 

  • Convert the parent to Auto Layout: The constrained element behavior is generally observed in standard frames. In Auto Layout frames, the "Fill container" resizing option handles fractional sizing correctly.
  • Set child to "Fill container": Within the Auto Layout parent, set the child element's horizontal and/or vertical resizing to "Fill container" in the right sidebar. This will allow it to adapt to fractional pixel values when the parent is resized. 

Using Auto Layout often provides more robust and predictable responsive behavior compared to constraints. Thanks again for your feedback and hope this helps!


Smith_Samuel_D
  • Author
  • New Participant
  • January 20, 2026

Hey ​@djv! Thanks for the response here. Thanks for converting it to a feature request!