Hi! When I want to snap to the grid inside a frame it seems doesn’t work at all. But when I move it outside of the frame it is working great. What’s the reason? Thanks 😀
'Snap to pixel grid' not working as intended?
Best answer by dvaliao
Hey All,
Sorry to hear you haven’t received help with this yet!
Even with ‘Snap to Pixel’ enabled, through regular use of Figma, it’s pretty hard to 100% avoid creating elements with sub pixel values, as there are a number of tools (scaling, import, strokes, auto layout, etc.) that generate sub-pixel values through normal use.
To avoid these as much as possible, here’s the workflow we suggest:
- Always keep ‘Snap to pixel grid’ enabled
- Use ‘Round to pixel’ (under Arrange, or from the Quick actions menu) on a selection to tidy up values where this is possible without skewing them
- Avoid using the Scale tool, which will snap the top level frame to the pixel grid but leave any elements inside off grid
- When applying strokes, try to keep the end pixel value in mind, i.e. adding a 1.5 pixel stroke to an element with an uneven dimension value will always be off grid in one direction
- Manually adjust pixel values on shapes that were created ‘programmatically’ (for example using outline stroke) which the system can’t always mathematically calculate and then round up or down to the grid
If anything you’re seeing seems unexpected, based on this information, please take a screen recording, add support-share@figma.com to your file as an Editor (this won’t affect your billing at all) and reach out to the support team directly via this form for help: https://help.figma.com/hc/en-us/requests/new
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.