You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/builder-css-styles/tricks/trick-flex-sizing/index.ts
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,6 @@ export function flexsizing({
30
30
caseMainAxisSize.max: {
31
31
return{
32
32
"align-self": "stretch",
33
-
flex: 1,// This is a temporary solution, since stretch can be used on non-space-between parent, but still the item should stretch, we use flex 1 to do this.
/// > From the docs: https://www.figma.com/plugin-docs/api/properties/nodes-layoutalign
135
+
/// Changing this property will cause the x, y, size, and relativeTransform properties on this node to change, if applicable (inside an auto-layout frame).
136
+
/// - Setting "STRETCH" will make the node "stretch" to fill the width of the parent vertical auto - layout frame, or the height of the parent horizontal auto - layout frame excluding the frame's padding.
137
+
/// - If the current node is an auto layout frame(e.g.an auto layout frame inside a parent auto layout frame) if you set layoutAlign to “STRETCH” you should set the corresponding axis – either primaryAxisSizingMode or counterAxisSizingMode – to be“FIXED”. This is because an auto - layout frame cannot simultaneously stretch to fill its parent and shrink to hug its children.
138
+
/// - Setting "INHERIT" does not "stretch" the node.
139
+
///
140
+
130
141
// TODO: inspect me. We're not 100% sure this is the correct behaviour.
0 commit comments