Skip to content

Commit 4aa4d19

Browse files
committed
docs: add document
1 parent aeae8c5 commit 4aa4d19

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,26 @@ FlexLayout automatically includes the UIView when:
722722

723723
Set the item display or not, with `none` value, the item will be hidden and not included in the layout.
724724

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.
744+
725745
<br>
726746

727747
### markDirty()

0 commit comments

Comments
 (0)