Skip to main content
Sayful_Islam_Shakib1
New Participant
Dec 4, 2026 4:00 AM UTC
Question

Figma constrain odd number issue.

There is an issue with Figma constraints when a frame is set to Absolute Position and its constraints are set to Center and Top.

When the parent frame has an odd-numbered width, Figma does not preserve the fractional value (e.g., 20.5) and instead rounds it to the nearest whole number (21). However, this issue does not occur when the parent frame has an even-numbered width.

I have attached two images for reference. Please review the issue.

Thank you.

Reference showing the issue
Layer Structure

 

2 replies

normancreed
New Member
Dec 4, 2026 5:14 AM UTC

Thanks for the detailed example. It looks like the centre constraint is rounding the half-pixel offset when the parent width is odd. As a temporary workaround, centring the child with auto layout, or keeping the parent width even, should avoid the shift. It may also be worth checking whether pixel-grid snapping is enabled, as that can affect fractional positions.

https://carbatteryreplacementnearme.ae/
Sayful_Islam_Shakib1
New Participant
Dec 4, 2026 5:37 AM UTC

I know the temporary sloution but I requrest the Figma to take a loook and fix this issue. The Pixel-Grid snapping is nothing to do with autolayout system.