This is the right place. This is happening because one of your main components is flipped or rotated. Go through the affected components and check rotation values. If they are all 0, then one of the components is flipped horizontally. The hotkey for this is Shift + H. Simply take out all the contents of the component and flip it, then put the contents back. Or simply rebuild the broken component.
This has helped immensely. I spent an entire day building the component only to realise that they’re getting flipped in instances. Knowing this has saved a lot of time in repairing the components.
No, it’s not fucking rotated, this idiotic Figma CONSTANTLY does something idiotic! LIKE ALL THE TIME SOME ILLOGIC SHIT!
EDIT: I know! This pathetic shit does it for mobile views only! I mean you need to have the orientation of both canvases the same, otherwise this idiotic tool will fucking rotate the item!! WHAT A PIECE OF IDIOTIC SHIT.
I will answer my case - I didn’t “rotate” it, it was just not mobile view but horizontal when creating component and I used it for mobile and it was vertical (obviously) - and those two settings need to be equal. Theoretically makes sense but there should be some kind of alert on this one that the settings are not equal.
There are no such things in Figma as “mobile view” and “not mobile view”. There are only frames, and they have a rotation property, which can be changed by the user. They can’t automatically rotate in any way, only the user can do it.
Yeah I meant frames for mobile view (meaning rotation) - it’s a shortcut of thought.
Now I know all that but at the beginning I was totally confused as of why components I put in the design file are vertical, not horizontal…
I had a similar issue with Tooltips arrows and text… which drove me nuts for a few hours! I solved it by removing the AutoLayout from the Variant inside the Master component
Make sure the content in the original frame of the variant is set to the appropriate constraints.
When my variant frame is set to top and bottom instead of just top, it flips vertically in my component frame at different heights. Ensuring the original frame of my component is set to top prevents this issue.
This solution also applies to using the Breakpoints plugin.
In general, we should not be flipping or mirroring our variants for them to look correct in the component, and the problem here is not that people are designing inside flipped frames, because we’re not.
How can I get to know whether the element is flipped or rotated during plugin development? Is there any specific things/value difference in any of the property?
Create a component and flip it, and check its rotation/X/Y values. When flipping horizontally, you will notice its rotation says 180degrees. Unfortunately, there’s no clear way to tell it been flipped vertically except for its Y value being way off as it’s still being calculated from the top pixel (which is now located at the bottom) for some weird reason.
I have a particular element that is horizontally flipped which is giving rotation as 180 deg. I am not able to identify that, whether it is horizontally flipped or is it normally rotated by 180 deg using the properties provided by figma. It is just that the X co-ordinate got changed during horizontal flipping which can not be used in differentiating rotation against flipping. Let me know your inputs on this.