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: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -722,6 +722,26 @@ FlexLayout automatically includes the UIView when:
722
722
723
723
Set the item display or not, with `none` value, the item will be hidden and not included in the layout.
724
724
725
+
Values:
726
+
***`flex`**: Default value. The item is displayed normally and included in the layout.
727
+
***`none`**: The item will be hidden and not included in the layout.
728
+
***`contents`**: The node is removed from the layout flow, while its children are preserved and hoisted. This allows higher-level UI frameworks to compose wrapper components (e.g., to handle events) without influencing the layout of child nodes.
729
+
730
+
<br>
731
+
732
+
### boxSizing
733
+
- Applies to: `flex items`
734
+
735
+
**Method:**
736
+
737
+
***`boxSizing(_: BoxSizing)`**
738
+
739
+
Set the box sizing mode for the item. This determines how the width and height of an element are calculated.
740
+
741
+
Values:
742
+
***`borderBox`**: Default value. With `borderBox`, the specified dimensions (width, height) include the content, padding, and border. This means the overall size of the element is as defined, with padding and border accounted for inside.
743
+
***`contentBox`**: With `contentBox`, the specified dimensions refer only to the content area. Padding and borders are added outside these dimensions, potentially increasing the total size of the element.
0 commit comments